Whitespace-only cosmetics: get rid of all remaining tabs
[mplayer/glamo.git] / mixer.h
blob26a9be18bdcb4f5f7edc3f3a567e21d681092aac
1 #ifndef __MPLAYER_MIXER
2 #define __MPLAYER_MIXER
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 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);
27 //extern void mixer_setbothvolume( int v );
28 #define mixer_setbothvolume(m, v) mixer_setvolume(m, v, v)
30 #endif