annotate mixer.h @ 13338:1820ef597cdb

quit slave mode command now accepts an exit value, patch by Aurelien Jacobs <aurel at gnuage.org>
author faust3
date Wed, 15 Sep 2004 09:29:10 +0000
parents 9709ce101949
children 75b84965d137
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
441
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
1 #ifndef __MPLAYER_MIXER
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
2 #define __MPLAYER_MIXER
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
3
12672
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
4 #include "libaf/af.h"
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
5 #include "libao2/audio_out.h"
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
6
441
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
7 extern char * mixer_device;
11837
4e8f8efb6906 add option to select mixer channel
attila
parents: 6311
diff changeset
8 extern char * mixer_channel;
441
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
9
12672
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
10 typedef struct mixer_s {
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
11 ao_functions_t *audio_out;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
12 af_stream_t *afilter;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
13 int volstep;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
14 int muted;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
15 float last_l, last_r;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
16 } mixer_t;
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
17
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
18 void mixer_getvolume(mixer_t *mixer, float *l, float *r);
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
19 void mixer_setvolume(mixer_t *mixer, float l, float r);
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
20 void mixer_incvolume(mixer_t *mixer);
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
21 void mixer_decvolume(mixer_t *mixer);
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
22 void mixer_getbothvolume(mixer_t *mixer, float *b);
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
23 void mixer_mute(mixer_t *mixer);
441
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
24
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
25 //extern void mixer_setbothvolume( int v );
12672
9709ce101949 New 'Mixer API' with ability to change volume through libaf (this part was written by Reimar Doffinger) and lesser global variables
alex
parents: 11837
diff changeset
26 #define mixer_setbothvolume(m, v) mixer_setvolume(m, v, v)
441
c4b4e2aac9de ups, I missed'em..
gabucino
parents:
diff changeset
27
1038
b36fb1ae4b53 applied solaris8/netbsd/other fixes patch by J¸«ärgen Keil <jk@tools.de>
arpi_esp
parents: 441
diff changeset
28 #endif