aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound.h
diff options
context:
space:
mode:
authorathrxx2011-11-06 00:55:37 +0100
committerJohannes Schickel2011-12-26 16:18:09 +0100
commit4098feff57239102a7519e5b7bc1ef8f41465dc2 (patch)
treede53d0dac0c935f3178e8dcc498b87a99552f388 /engines/kyra/sound.h
parentf2a1ff3f7842757d369db23652b39ed3f2a22144 (diff)
downloadscummvm-rg350-4098feff57239102a7519e5b7bc1ef8f41465dc2.tar.gz
scummvm-rg350-4098feff57239102a7519e5b7bc1ef8f41465dc2.tar.bz2
scummvm-rg350-4098feff57239102a7519e5b7bc1ef8f41465dc2.zip
KYRA: (AdLib Driver) - allow sound trigger query
Diffstat (limited to 'engines/kyra/sound.h')
-rw-r--r--engines/kyra/sound.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h
index 88454e4878..63cec48d00 100644
--- a/engines/kyra/sound.h
+++ b/engines/kyra/sound.h
@@ -217,6 +217,16 @@ public:
* Stops playback of the current voice.
*/
void voiceStop(const Audio::SoundHandle *handle = 0);
+
+ /**
+ * Receive notifications from a song at certain points.
+ */
+ virtual int checkTrigger() { return 0; }
+
+ /**
+ * Reset sound trigger.
+ */
+ virtual void resetTrigger() {}
protected:
const char *fileListEntry(int file) const { return (_soundDataList != 0 && file >= 0 && file < _soundDataList->fileListLen) ? _soundDataList->fileList[file] : ""; }
int fileListLen() const { return _soundDataList->fileListLen; }