Skip to content

Commit

Permalink
TITANIC: Fix interrupting playing sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 28, 2016
1 parent e12496b commit 8316946
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engines/titanic/sound/qmixer.cpp
Expand Up @@ -60,7 +60,12 @@ void QMixer::qsWaveMixFreeWave(Audio::SoundHandle &handle) {
}

void QMixer::qsWaveMixFlushChannel(int iChannel, uint flags) {
// Not currently implemented in ScummVM
Common::List<SoundEntry>::iterator i;
Common::List<SoundEntry> &sounds = _channels[iChannel]._sounds;
for (i = sounds.begin(); i != sounds.end(); ++i)
_mixer->stopHandle((*i)._soundHandle);

sounds.clear();
}

void QMixer::qsWaveMixSetPanRate(int iChannel, uint flags, uint rate) {
Expand Down

0 comments on commit 8316946

Please sign in to comment.