mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 18:37:01 +00:00
WAGE: Fix crash on sound reuse/game quit
This commit is contained in:
parent
82a3088557
commit
6fac0ace2c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user