aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/sound.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-06 12:14:02 -0400
committerPaul Gilbert2016-08-06 12:14:02 -0400
commitf0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4 (patch)
tree078f3b879d844b955b030d27b03918620c907421 /engines/titanic/sound/sound.cpp
parent139ad46410fe0a92a83eabd662caf2165eb498da (diff)
downloadscummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.tar.gz
scummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.tar.bz2
scummvm-rg350-f0d208cdcf6e8fb8fc60ae3eddc62fc255fae2e4.zip
TITANIC: Added more sound manager methods
Diffstat (limited to 'engines/titanic/sound/sound.cpp')
-rw-r--r--engines/titanic/sound/sound.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index 5ee1d24d04..b796ba5595 100644
--- a/engines/titanic/sound/sound.cpp
+++ b/engines/titanic/sound/sound.cpp
@@ -55,11 +55,9 @@ void CSound::preEnterView(CViewItem *newView, bool isNewRoom) {
warning("CSound::preEnterView");
}
-bool CSound::fn1(int val) {
- if (val == 0 || val == -1) {
- if (!_soundManager.proc14())
- return true;
- }
+bool CSound::isActive(int handle) const {
+ if (handle != 0 && handle != -1)
+ return _soundManager.isActive(handle);
return false;
}