From 6ffbe90130b30b19783b7c200a971c32cf42cb70 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 5 Sep 2010 19:25:08 +0000 Subject: 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 --- engines/sci/sound/music.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3