diff options
author | Max Horn | 2010-01-08 22:09:43 +0000 |
---|---|---|
committer | Max Horn | 2010-01-08 22:09:43 +0000 |
commit | f720d99b0a4fdc97d4d5c01b8c4db43c318c62b1 (patch) | |
tree | b628cb494432e593a24a19134817798d14672048 /engines/sword2/sound.cpp | |
parent | 490153232a89bc64deb8a2ea72443af986940e63 (diff) | |
download | scummvm-rg350-f720d99b0a4fdc97d4d5c01b8c4db43c318c62b1.tar.gz scummvm-rg350-f720d99b0a4fdc97d4d5c01b8c4db43c318c62b1.tar.bz2 scummvm-rg350-f720d99b0a4fdc97d4d5c01b8c4db43c318c62b1.zip |
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
Diffstat (limited to 'engines/sword2/sound.cpp')
-rw-r--r-- | engines/sword2/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/sound.cpp b/engines/sword2/sound.cpp index 213f3e7c83..224bc66a95 100644 --- a/engines/sword2/sound.cpp +++ b/engines/sword2/sound.cpp @@ -90,7 +90,7 @@ Sound::Sound(Sword2Engine *vm) { _mixBuffer = NULL; _mixBufferLen = 0; - _vm->_mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, Audio::Mixer::kMaxChannelVolume, 0, false, true); + _vm->_mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::NO, true); } Sound::~Sound() { @@ -342,7 +342,7 @@ int32 Sound::playFx(Audio::SoundHandle *handle, byte *data, uint32 len, uint8 vo _vm->_mixer->playInputStream(soundType, handle, Audio::makeLoopingAudioStream(input, loop ? 0 : 1), - -1, vol, pan, true, false, isReverseStereo()); + -1, vol, pan, DisposeAfterUse::YES, false, isReverseStereo()); return RD_OK; } |