mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
SCUMM: Do not reverse stereo for digital iMuse sounds
This commit is contained in:
parent
84edf0c6a7
commit
1d45e08889
@ -201,8 +201,7 @@ void IMuseDigital::saveOrLoad(Serializer *ser) {
|
||||
|
||||
track->stream = Audio::makeQueuingAudioStream(freq, (track->mixerFlags & kFlagStereo) != 0);
|
||||
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, track->stream, -1, track->getVol(), track->getPan(),
|
||||
DisposeAfterUse::YES, false, (track->mixerFlags & kFlagStereo) != 0);
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, track->stream, -1, track->getVol(), track->getPan());
|
||||
_mixer->pauseHandle(track->mixChanHandle, true);
|
||||
}
|
||||
}
|
||||
|
@ -110,8 +110,7 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType,
|
||||
track->souStreamUsed = (input != 0);
|
||||
|
||||
if (track->souStreamUsed) {
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, input, -1, track->getVol(), track->getPan(),
|
||||
DisposeAfterUse::YES, false, (track->mixerFlags & kFlagStereo) != 0);
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, input, -1, track->getVol(), track->getPan());
|
||||
} else {
|
||||
strcpy(track->soundName, soundName);
|
||||
track->soundDesc = _sound->openSound(soundId, soundName, soundType, volGroupId, -1);
|
||||
@ -167,8 +166,7 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType,
|
||||
}
|
||||
|
||||
track->stream = Audio::makeQueuingAudioStream(freq, track->mixerFlags & kFlagStereo);
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, track->stream, -1, track->getVol(), track->getPan(),
|
||||
DisposeAfterUse::YES, false, (track->mixerFlags & kFlagStereo) != 0);
|
||||
_mixer->playStream(track->getType(), &track->mixChanHandle, track->stream, -1, track->getVol(), track->getPan());
|
||||
}
|
||||
|
||||
track->used = true;
|
||||
@ -368,8 +366,7 @@ Track *IMuseDigital::cloneToFadeOutTrack(Track *track, int fadeDelay) {
|
||||
|
||||
// Create an appendable output buffer
|
||||
fadeTrack->stream = Audio::makeQueuingAudioStream(_sound->getFreq(fadeTrack->soundDesc), track->mixerFlags & kFlagStereo);
|
||||
_mixer->playStream(track->getType(), &fadeTrack->mixChanHandle, fadeTrack->stream, -1, fadeTrack->getVol(), fadeTrack->getPan(),
|
||||
DisposeAfterUse::YES, false, (track->mixerFlags & kFlagStereo) != 0);
|
||||
_mixer->playStream(track->getType(), &fadeTrack->mixChanHandle, fadeTrack->stream, -1, fadeTrack->getVol(), fadeTrack->getPan());
|
||||
fadeTrack->used = true;
|
||||
|
||||
debug(5, "cloneToFadeOutTrack() - end of func, soundId %d, fade soundId %d", track->soundId, fadeTrack->soundId);
|
||||
|
Loading…
Reference in New Issue
Block a user