Mercurial > mplayer.hg
annotate mixer.h @ 29544:c7249524c681
Check for return value of initFilter().
author | ramiro |
---|---|
date | Sat, 29 Aug 2009 23:06:22 +0000 |
parents | 9e739bdb049c |
children | c1a3f1bbba26 |
rev | line source |
---|---|
23934
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
23568
diff
changeset
|
1 #ifndef MPLAYER_MIXER_H |
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
23568
diff
changeset
|
2 #define MPLAYER_MIXER_H |
441 | 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 | 7 extern char * mixer_device; |
11837 | 8 extern char * mixer_channel; |
13933
75b84965d137
allow forcing of software volume control and setting maximum amplification.
reimar
parents:
12672
diff
changeset
|
9 extern int soft_vol; |
75b84965d137
allow forcing of software volume control and setting maximum amplification.
reimar
parents:
12672
diff
changeset
|
10 extern float soft_vol_max; |
441 | 11 |
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
|
12 typedef struct mixer_s { |
25913 | 13 const ao_functions_t *audio_out; |
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
|
14 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
|
15 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
|
16 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
|
17 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
|
18 } 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
|
19 |
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_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
|
21 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
|
22 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
|
23 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
|
24 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
|
25 void mixer_mute(mixer_t *mixer); |
23568 | 26 void mixer_getbalance(mixer_t *mixer, float *bal); |
27 void mixer_setbalance(mixer_t *mixer, float bal); | |
441 | 28 |
28051 | 29 //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
|
30 #define mixer_setbothvolume(m, v) mixer_setvolume(m, v, v) |
441 | 31 |
23934
88bed2131f19
Identifiers starting with underscores are reserved.
diego
parents:
23568
diff
changeset
|
32 #endif /* MPLAYER_MIXER_H */ |