From d67c53d756a1706a9796acf258ab2d29ddf54939 Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Sun, 1 Jun 2003 03:44:07 +0000 Subject: basic ingame speech support svn-id: r8220 --- sky/intro.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sky/intro.cpp') diff --git a/sky/intro.cpp b/sky/intro.cpp index d136ddf299..344ca58ee1 100644 --- a/sky/intro.cpp +++ b/sky/intro.cpp @@ -477,12 +477,16 @@ void SkyState::removeText(uint32 *&cmdPtr) { void SkyState::introFx(uint32 *&cmdPtr) { + _mixer->stopAll(); _skySound->playSound((uint16)cmdPtr[2], (uint16)cmdPtr[3]); cmdPtr += 4; } void SkyState::introVol(uint32 *&cmdPtr) { + // HACK: for some reason, the mixer will only stop playing + // looping sounds if you do it using SoundMixer::stopAll(); + _mixer->stopAll(); _skySound->playSound(1, (uint16)(cmdPtr[2] & 0x7F)); cmdPtr += 3; } -- cgit v1.2.3