1 #ifndef MPLAYER_MIXER_H
2 #define MPLAYER_MIXER_H
5 #include "libao2/audio_out.h"
7 extern char * mixer_device
;
8 extern char * mixer_channel
;
10 extern float soft_vol_max
;
12 typedef struct mixer_s
{
13 ao_functions_t
*audio_out
;
20 void mixer_getvolume(mixer_t
*mixer
, float *l
, float *r
);
21 void mixer_setvolume(mixer_t
*mixer
, float l
, float r
);
22 void mixer_incvolume(mixer_t
*mixer
);
23 void mixer_decvolume(mixer_t
*mixer
);
24 void mixer_getbothvolume(mixer_t
*mixer
, float *b
);
25 void mixer_mute(mixer_t
*mixer
);
26 void mixer_getbalance(mixer_t
*mixer
, float *bal
);
27 void mixer_setbalance(mixer_t
*mixer
, float bal
);
29 //extern void mixer_setbothvolume( int v );
30 #define mixer_setbothvolume(m, v) mixer_setvolume(m, v, v)
32 #endif /* MPLAYER_MIXER_H */