2 // Mixer.app / AlsaMixer.app
4 // Copyright (c) 1998-2002 Per Liden
5 // Copyright (C) 2004, Petr Hlavka
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307,
26 #include "AMixer/AMixer.h"
30 #define APPNAME "AlsaMixer.app"
31 #define VERSION "1.8.0"
32 #define INSTANCENAME "alsamixer_app"
33 #define CLASSNAME "AlsaMixer_app"
34 #define SETTINGS "/GNUstep/Defaults/AlsaMixer"
35 #define MAX_COMMAND_LENGTH 512
39 #define LABEL_FONT "-*-helvetica-medium-r-*-*-8-*-*-*-*-*-*-*"
49 Mixer(int argc
, char** argv
);
52 void saveVolumeSettings();
55 void tryHelp(char* appname
);
57 void checkArgument(char** argv
, int argc
, int index
);
59 void findMixerDevice();
61 void setVolume(int button
, int volume
);
62 void toggleMute(int button
);
63 void setButtonType(int button
);
64 void setButtonPosition(int button
, int position
);
65 void setButtonPositionRelative(int button
, int relativePosition
);
66 void loadVolumeSettings();