aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-02 20:10:48 -0400
committerPaul Gilbert2016-09-02 20:10:48 -0400
commit6e5072e1b253038d1eb05e66937637069a3a84f8 (patch)
tree30244e044c8041dd1652d092c6cbd64aa75394ca /engines/titanic/sound/sound.cpp
parenta4d577beffbd33e0472efe5b3d3a99cb97b8ecb5 (diff)
downloadscummvm-rg350-6e5072e1b253038d1eb05e66937637069a3a84f8.tar.gz
scummvm-rg350-6e5072e1b253038d1eb05e66937637069a3a84f8.tar.bz2
scummvm-rg350-6e5072e1b253038d1eb05e66937637069a3a84f8.zip
TITANIC: Figured out sound durations for speeches & SFX
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r--engines/titanic/sound/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index 6d27d1de49..39c8d04769 100644
--- a/engines/titanic/sound/sound.cpp
+++ b/engines/titanic/sound/sound.cpp
@@ -158,7 +158,7 @@ int CSound::playSound(const CString &name, CProximity &prox) {
if (!waveFile)
return -1;
- prox._field6C = waveFile->fn1();
+ prox._soundDuration = waveFile->getDuration();
if (prox._soundType != Audio::Mixer::kPlainSoundType)
waveFile->_soundType = prox._soundType;
@@ -208,7 +208,7 @@ int CSound::playSpeech(CDialogueFile *dialogueFile, int speechId, CProximity &pr
if (!waveFile)
return -1;
- prox._field6C = waveFile->fn1();
+ prox._soundDuration = waveFile->getDuration();
activateSound(waveFile, prox._freeSoundFlag);
return _soundManager.playSound(*waveFile, prox);