From 8e598829e832b9d392228d9485ee2dda8a989a61 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Wed, 12 May 2004 08:20:52 +0000 Subject: [PATCH] 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 --- include/mixer.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/mixer.h b/include/mixer.h index 9309a7f0..4b839ac7 100644 --- a/include/mixer.h +++ b/include/mixer.h @@ -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);