WAGE: Fix crash on sound reuse/game quit

This commit is contained in:
Eugene Sandulenko 2017-08-08 23:45:00 +02:00
parent 82a3088557
commit 6fac0ace2c

View File

@ -91,7 +91,8 @@ void WageEngine::playSound(Common::String soundName) {
Audio::AudioStream *stream = Audio::makeRawStream(s->_data, s->_size, 11000, Audio::FLAG_UNSIGNED);
_mixer->playStream(Audio::Mixer::kPlainSoundType, &s->_handle, stream);
_mixer->playStream(Audio::Mixer::kPlainSoundType, &s->_handle, stream,
-1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO);
}
void WageEngine::updateSoundTimerForScene(Scene *scene, bool firstTime) {