Skip to content

Commit

Permalink
HOPKINS: Bugfix for sounds in the Breakout game
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Dec 9, 2012
1 parent 9987b43 commit fedf2ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/hopkins/computer.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions engines/hopkins/sound.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit fedf2ca

Please sign in to comment.