aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-12-09 20:38:28 +1100
committerPaul Gilbert2012-12-09 20:38:28 +1100
commitfedf2ca70f7d38e0b49adec8b61b0a6b464b9929 (patch)
tree7acb4f8493a33a8e6f2bd0b375a487f057731157 /engines
parent9987b436f5605e857eacfc070de4a96546dc6c16 (diff)
downloadscummvm-rg350-fedf2ca70f7d38e0b49adec8b61b0a6b464b9929.tar.gz
scummvm-rg350-fedf2ca70f7d38e0b49adec8b61b0a6b464b9929.tar.bz2
scummvm-rg350-fedf2ca70f7d38e0b49adec8b61b0a6b464b9929.zip
HOPKINS: Bugfix for sounds in the Breakout game
Diffstat (limited to 'engines')
-rw-r--r--engines/hopkins/computer.cpp2
-rw-r--r--engines/hopkins/sound.cpp1
2 files changed, 3 insertions, 0 deletions
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);
}