aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound
diff options
context:
space:
mode:
authorMax Horn2010-01-08 22:09:43 +0000
committerMax Horn2010-01-08 22:09:43 +0000
commitf720d99b0a4fdc97d4d5c01b8c4db43c318c62b1 (patch)
treeb628cb494432e593a24a19134817798d14672048 /engines/sci/sound
parent490153232a89bc64deb8a2ea72443af986940e63 (diff)
downloadscummvm-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/sci/sound')
-rw-r--r--engines/sci/sound/music.cpp4
-rw-r--r--engines/sci/sound/softseq/adlib.cpp2
-rw-r--r--engines/sci/sound/softseq/amiga.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp
index d84360d1fe..e1ac79f4c9 100644
--- a/engines/sci/sound/music.cpp
+++ b/engines/sci/sound/music.cpp
@@ -388,11 +388,11 @@ void SciMusic::soundPlay(MusicEntry *pSnd) {
);
_pMixer->playInputStream(pSnd->soundType, &pSnd->hCurrentAud,
pSnd->pLoopStream, -1, pSnd->volume, 0,
- false);
+ DisposeAfterUse::NO);
} else {
_pMixer->playInputStream(pSnd->soundType, &pSnd->hCurrentAud,
pSnd->pStreamAud, -1, pSnd->volume, 0,
- false);
+ DisposeAfterUse::NO);
}
} else {
_mutex.lock();
diff --git a/engines/sci/sound/softseq/adlib.cpp b/engines/sci/sound/softseq/adlib.cpp
index 6f73b45650..7cfcf0cbaf 100644
--- a/engines/sci/sound/softseq/adlib.cpp
+++ b/engines/sci/sound/softseq/adlib.cpp
@@ -229,7 +229,7 @@ int MidiDriver_Adlib::open(bool isSCI0) {
MidiDriver_Emulated::open();
- _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, _mixer->kMaxChannelVolume, 0, false);
+ _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, _mixer->kMaxChannelVolume, 0, DisposeAfterUse::NO);
return 0;
}
diff --git a/engines/sci/sound/softseq/amiga.cpp b/engines/sci/sound/softseq/amiga.cpp
index 452768901a..1042d98422 100644
--- a/engines/sci/sound/softseq/amiga.cpp
+++ b/engines/sci/sound/softseq/amiga.cpp
@@ -541,7 +541,7 @@ int MidiDriver_Amiga::open() {
MidiDriver_Emulated::open();
- _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, _mixer->kMaxChannelVolume, 0, false);
+ _mixer->playInputStream(Audio::Mixer::kMusicSoundType, &_mixerSoundHandle, this, -1, _mixer->kMaxChannelVolume, 0, DisposeAfterUse::NO);
return Common::kNoError;
}