diff options
author | lukaslw | 2014-11-09 03:05:34 +0100 |
---|---|---|
committer | lukaslw | 2014-11-09 03:05:34 +0100 |
commit | 3472d95f4546fd1c1212e0f9ef85deaefa23e689 (patch) | |
tree | a98cb4f612eb2b459c1fb2277cb9faa16ebcf762 /engines/prince | |
parent | cb01dd36b62fca7b8bcd8d41d701f6f41b8249d8 (diff) | |
download | scummvm-rg350-3472d95f4546fd1c1212e0f9ef85deaefa23e689.tar.gz scummvm-rg350-3472d95f4546fd1c1212e0f9ef85deaefa23e689.tar.bz2 scummvm-rg350-3472d95f4546fd1c1212e0f9ef85deaefa23e689.zip |
PRINCE: playSample() - split to sound and speech types to correct volume settings
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/prince.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); + } } } |