diff options
author | Martin Kiewitz | 2010-09-05 19:25:08 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-09-05 19:25:08 +0000 |
commit | 6ffbe90130b30b19783b7c200a971c32cf42cb70 (patch) | |
tree | 50c97bb5684bc7b0ac1ace84114e0c5607fd5b99 /engines/sci | |
parent | 49c8d1a549deb7abdb49339c81031ea46c7716b5 (diff) | |
download | scummvm-rg350-6ffbe90130b30b19783b7c200a971c32cf42cb70.tar.gz scummvm-rg350-6ffbe90130b30b19783b7c200a971c32cf42cb70.tar.bz2 scummvm-rg350-6ffbe90130b30b19783b7c200a971c32cf42cb70.zip |
SCI: sierra sci ignores vol for kDoSound samples
now "score" is halfway playing, but it's cut so only "s" is played. Needs to get further investigated
svn-id: r52568
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sound/music.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index fe1d4fdbbb..8eb5be299b 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -353,6 +353,10 @@ void SciMusic::soundPlay(MusicEntry *pSnd) { } if (pSnd->pStreamAud && !_pMixer->isSoundHandleActive(pSnd->hCurrentAud)) { + // Sierra SCI ignores volume set when playing samples via kDoSound + // At least freddy pharkas/CD has a script bug that sets volume to 0 + // when playing the "score" sample + pSnd->volume = 0x7f; if (pSnd->loop > 1) { pSnd->pLoopStream = new Audio::LoopingAudioStream(pSnd->pStreamAud, pSnd->loop, DisposeAfterUse::NO); |