1
0
Fork 0

Rename the channel name for the mixer

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1791
This commit is contained in:
Sjoerd van der Berg 2004-05-11 18:48:32 +00:00
parent 1e670040ce
commit af4ee165df
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ void OPL_Init(Section* sec,Bitu base,OPL_Mode oplmode,Bitu rate) {
opl.last_used=0;
opl.mode=oplmode;
opl.chan=MIXER_AddChannel(OPL_CallBack,rate,"ADLIB");
opl.chan=MIXER_AddChannel(OPL_CallBack,rate,"FM");
MIXER_SetMode(opl.chan,(opl.mode>OPL_opl2) ? MIXER_16STEREO : MIXER_16MONO);
MIXER_Enable(opl.chan,false);
};

View file

@ -223,7 +223,7 @@ void PCSPEAKER_Init(Section* sec) {
spkr.wave.count.half=spkr.wave.new_count.half=(0x10000 << SPKR_SHIFT)/2;
/* Register the sound channel */
spkr.chan=MIXER_AddChannel(&PCSPEAKER_CallBack,spkr.hw.rate,"PC-SPEAKER");
spkr.chan=MIXER_AddChannel(&PCSPEAKER_CallBack,spkr.hw.rate,"SPKR");
MIXER_Enable(spkr.chan,false);
MIXER_SetMode(spkr.chan,MIXER_16MONO);
}