From 3472d95f4546fd1c1212e0f9ef85deaefa23e689 Mon Sep 17 00:00:00 2001 From: lukaslw Date: Sun, 9 Nov 2014 03:05:34 +0100 Subject: PRINCE: playSample() - split to sound and speech types to correct volume settings --- engines/prince/prince.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/prince/prince.cpp') diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 5055c6a225..55f12a6560 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -754,7 +754,11 @@ void PrinceEngine::playSample(uint16 sampleId, uint16 loopType) { return; } _audioStream[sampleId]->rewind(); - _mixer->playStream(Audio::Mixer::kSFXSoundType, &_soundHandle[sampleId], _audioStream[sampleId], sampleId, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO); + if (sampleId < 28) { + _mixer->playStream(Audio::Mixer::kSFXSoundType, &_soundHandle[sampleId], _audioStream[sampleId], sampleId, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO); + } else { + _mixer->playStream(Audio::Mixer::kSpeechSoundType, &_soundHandle[sampleId], _audioStream[sampleId], sampleId, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO); + } } } -- cgit v1.2.3