diff options
author | Paul Gilbert | 2016-09-03 10:49:03 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-03 10:49:03 -0400 |
commit | 3d0f922f7bdb1388f797aa55a8a4f67ea7f7960b (patch) | |
tree | 36b1832c08b09c5bc778213cd2ec8be7a9d9cb24 /engines/titanic/sound/sound.cpp | |
parent | c224d35a432fff7e1d0a6bf5368f7f2e81a45e27 (diff) | |
download | scummvm-rg350-3d0f922f7bdb1388f797aa55a8a4f67ea7f7960b.tar.gz scummvm-rg350-3d0f922f7bdb1388f797aa55a8a4f67ea7f7960b.tar.bz2 scummvm-rg350-3d0f922f7bdb1388f797aa55a8a4f67ea7f7960b.zip |
TITANIC: Further conversion of free flags to DisposeAfterUse
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r-- | engines/titanic/sound/sound.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp index 998a0a9827..3288c4f4dd 100644 --- a/engines/titanic/sound/sound.cpp +++ b/engines/titanic/sound/sound.cpp @@ -163,8 +163,7 @@ int CSound::playSound(const CString &name, CProximity &prox) { if (prox._soundType != Audio::Mixer::kPlainSoundType) waveFile->_soundType = prox._soundType; - activateSound(waveFile, prox._freeSoundFlag ? DisposeAfterUse::YES : - DisposeAfterUse::NO); + activateSound(waveFile, prox._disposeAfterUse); return _soundManager.playSound(*waveFile, prox); } @@ -211,7 +210,7 @@ int CSound::playSpeech(CDialogueFile *dialogueFile, int speechId, CProximity &pr return -1; prox._soundDuration = waveFile->getDuration(); - activateSound(waveFile, prox._freeSoundFlag ? DisposeAfterUse::YES : DisposeAfterUse::NO); + activateSound(waveFile, prox._disposeAfterUse); return _soundManager.playSound(*waveFile, prox); } |