From fedf2ca70f7d38e0b49adec8b61b0a6b464b9929 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 9 Dec 2012 20:38:28 +1100 Subject: HOPKINS: Bugfix for sounds in the Breakout game --- engines/hopkins/computer.cpp | 2 ++ engines/hopkins/sound.cpp | 1 + 2 files changed, 3 insertions(+) (limited to 'engines') diff --git a/engines/hopkins/computer.cpp b/engines/hopkins/computer.cpp index 74c1c644bd..cddc1f18c1 100644 --- a/engines/hopkins/computer.cpp +++ b/engines/hopkins/computer.cpp @@ -786,6 +786,8 @@ void ComputerManager::PLAY_BRIQUE() { // Play loop do { + _vm->_soundManager.checkSounds(); + RAQX = _vm->_eventsManager.XMOUSE(); if (_vm->_eventsManager.souris_x <= 4) RAQX = 5; diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp index 546a792b54..1f7e6a9ee0 100644 --- a/engines/hopkins/sound.cpp +++ b/engines/hopkins/sound.cpp @@ -840,6 +840,7 @@ void SoundManager::PLAY_SAMPLE_SDL(int voiceIndex, int wavIndex) { int volume = (voiceIndex == 2) ? VOICEVOL * 255 / 16 : SOUNDVOL * 255 / 16; // Start the voice playing + Swav[wavIndex]._audioStream->rewind(); _vm->_mixer->playStream(Audio::Mixer::kSFXSoundType, &Swav[wavIndex]._soundHandle, Swav[wavIndex]._audioStream, -1, volume, 0, DisposeAfterUse::NO); } -- cgit v1.2.3