4 enum { AU_STOPPED, AU_PLAYING };
18 void au_shutdown(void);
20 struct au_module *au_load_module(const char *fname);
21 void au_free_module(struct au_module *mod);
23 int au_play_module(struct au_module *mod);
25 int au_stop_module(struct au_module *mod);
26 int au_module_state(struct au_module *mod);
28 int au_volume(int vol);
29 int au_sfx_volume(int vol);
30 int au_music_volume(int vol);
32 /* pay no attention to the man behind the curtain */
33 #define AU_VOLADJ(vol, newvol) \
36 switch(newvol & 0xff00) { \
41 (newvol) = (vol) + (d ? d : 16); \
42 if((newvol) >= 256) (newvol) = 255; \
46 (newvol) = (vol) - (d ? d : 16); \
47 if((newvol) < 0) (newvol) = 0; \