mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-22 13:55:38 +00:00
Restore Sega Rally 2 music in some practice stages
This commit is contained in:
parent
383e6ac85c
commit
6fe878b1d3
|
@ -1038,23 +1038,30 @@ void CDSB2::RunFrame(INT16 *audioL, INT16 *audioR)
|
|||
|
||||
INT16 *leftChannelSource = nullptr;
|
||||
INT16 *rightChannelSource = nullptr;
|
||||
UINT8 volL=0, volR=0;
|
||||
switch (stereo)
|
||||
{
|
||||
default:
|
||||
case StereoMode::Stereo:
|
||||
leftChannelSource = mpegL;
|
||||
rightChannelSource = mpegR;
|
||||
volL = volume[0];
|
||||
volR = volume[1];
|
||||
break;
|
||||
case StereoMode::MonoLeft:
|
||||
leftChannelSource = mpegL;
|
||||
rightChannelSource = mpegL;
|
||||
volL = volume[1];
|
||||
volR = volume[1];
|
||||
break;
|
||||
case StereoMode::MonoRight:
|
||||
leftChannelSource = mpegR;
|
||||
rightChannelSource = mpegR;
|
||||
volL = volume[0];
|
||||
volR = volume[0];
|
||||
break;
|
||||
}
|
||||
retainedSamples = Resampler.UpSampleAndMix(audioL, audioR, leftChannelSource, rightChannelSource, volume[0], volume[1], 44100/60, 32000/60+2, 44100, 32000);
|
||||
retainedSamples = Resampler.UpSampleAndMix(audioL, audioR, leftChannelSource, rightChannelSource, volL, volR, 44100/60, 32000/60+2, 44100, 32000);
|
||||
}
|
||||
|
||||
void CDSB2::Reset(void)
|
||||
|
|
Loading…
Reference in a new issue