1
0
Fork 0

Add new functions for finding specific channels

Changed the setting of channel volume


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1796
This commit is contained in:
Sjoerd van der Berg 2004-05-12 08:20:52 +00:00
parent bfb6e5b4e4
commit 8e598829e8

View file

@ -26,14 +26,12 @@ typedef void (*MIXER_MixHandler)(Bit8u * sampdate,Bit32u len);
#define MAX_AUDIO ((1<<(16-1))-1)
#define MIN_AUDIO -(1<<(16-1))
struct MIXER_Channel;
MIXER_Channel * MIXER_AddChannel(MIXER_MixHandler handler,Bit32u freq,char * name);
void MIXER_SetVolume(MIXER_Channel * chan,Bit8u vol);
void MIXER_SetFreq(MIXER_Channel * chan,Bit32u freq);
MIXER_Channel * MIXER_AddChannel(MIXER_MixHandler handler,Bitu freq,char * name);
MIXER_Channel * MIXER_FindChannel(const char * name);
void MIXER_SetVolume(MIXER_Channel * chan,float left,float right);
void MIXER_SetFreq(MIXER_Channel * chan,Bitu freq);
void MIXER_SetMode(MIXER_Channel * chan,Bit8u mode);
void MIXER_Enable(MIXER_Channel * chan,bool enable);