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