mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
CGE: Fix FX stereo
This commit is contained in:
parent
d2c510b886
commit
150011b843
@ -91,6 +91,12 @@ void Sound::sndDigiStart(SmpInfo *PSmpInfo) {
|
||||
// Start the new sound
|
||||
_vm->_mixer->playStream(Audio::Mixer::kSFXSoundType, &_soundHandle,
|
||||
Audio::makeLoopingAudioStream(_audioStream, (uint)PSmpInfo->_counter));
|
||||
|
||||
// CGE pan:
|
||||
// 8 = Center
|
||||
// Less = Left
|
||||
// More = Right
|
||||
_vm->_mixer->setChannelBalance(_soundHandle, (int8)CLIP(((PSmpInfo->_span - 8) * 16), -127, 127));
|
||||
}
|
||||
|
||||
void Sound::stop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user