aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-06 21:55:19 -0400
committerPaul Gilbert2016-08-06 21:55:19 -0400
commit87b4c8a9d9654eec78e8f3e58995d61e6ad98b04 (patch)
tree1b04f46ca5311eb79a2bc0dde4190d5ee898726d /engines/titanic/sound/sound.h
parent467967542b499767ea5b271d5c0bbb0431ee9fcf (diff)
downloadscummvm-rg350-87b4c8a9d9654eec78e8f3e58995d61e6ad98b04.tar.gz
scummvm-rg350-87b4c8a9d9654eec78e8f3e58995d61e6ad98b04.tar.bz2
scummvm-rg350-87b4c8a9d9654eec78e8f3e58995d61e6ad98b04.zip
TITANIC: Added more sound manager functionality
Diffstat (limited to 'engines/titanic/sound/sound.h')
-rw-r--r--engines/titanic/sound/sound.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/engines/titanic/sound/sound.h b/engines/titanic/sound/sound.h
index bb2525a7c3..34ef234f2a 100644
--- a/engines/titanic/sound/sound.h
+++ b/engines/titanic/sound/sound.h
@@ -117,11 +117,20 @@ public:
*/
bool isActive(int handle) const;
- void fn2(int handle);
- void fn3(int handle, int val2, int val3);
+ /**
+ * Sets the volume for a sound
+ * @param handle Sound handle
+ * @param volume Volume percentage (0 to 100)
+ * @param seconds Number of seconds to transition to the new volume
+ */
+ void setVolume(uint handle, uint volume, uint seconds);
+
void fn4(CWaveFile *waveFile, int val);
-
- void managerProc8(int v) { _soundManager.proc8(v); }
+
+ /**
+ * Stops any sounds attached to a given channel
+ */
+ void stopChannel(int channel);
/**
* Loads a TrueTalk dialogue
@@ -158,6 +167,16 @@ public:
* Play a sound
*/
int playSound(const CString &name, CProximity &prox);
+
+ /**
+ * Stop a sound
+ */
+ void stopSound(uint handle);
+
+ /**
+ * Flags that a sound can be freed if a timeout is set
+ */
+ void setCanFree(int handle);
};
} // End of namespace Titanic