Do not auto-detect old libnut installations.
[mplayer/glamo.git] / mixer.h
blobaa36d0c60fefbcdb429c508e2f244df35d04f06b
1 #ifndef MPLAYER_MIXER_H
2 #define MPLAYER_MIXER_H
4 #include "libaf/af.h"
5 #include "libao2/audio_out.h"
7 extern char * mixer_device;
8 extern char * mixer_channel;
9 extern int soft_vol;
10 extern float soft_vol_max;
12 typedef struct mixer_s {
13 const ao_functions_t *audio_out;
14 af_stream_t *afilter;
15 int volstep;
16 int muted;
17 float last_l, last_r;
18 } mixer_t;
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 //void mixer_setbothvolume(int v);
30 #define mixer_setbothvolume(m, v) mixer_setvolume(m, v, v)
32 #endif /* MPLAYER_MIXER_H */