aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-02-12 16:25:28 +0000
committerTorbjörn Andersson2004-02-12 16:25:28 +0000
commit9003dbbcb325cdf30b15822bc9bbf29c04884579 (patch)
tree88ae410ec521d585831864aab37b512474fa2951 /sound/mixer.h
parent322266106124af70a0f1c1fb91f77766917c57e0 (diff)
downloadscummvm-rg350-9003dbbcb325cdf30b15822bc9bbf29c04884579.tar.gz
scummvm-rg350-9003dbbcb325cdf30b15822bc9bbf29c04884579.tar.bz2
scummvm-rg350-9003dbbcb325cdf30b15822bc9bbf29c04884579.zip
With no comments from fingolfin, and a go-ahead from ender, I've committed
patch #892455 ("getElapsedTime() for sounds") despite its current shortcomings. It should be good enough for the Broken Sword cutscenes anyway, which is what I'll be looking at next. svn-id: r12829
Diffstat (limited to 'sound/mixer.h')
-rw-r--r--sound/mixer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/mixer.h b/sound/mixer.h
index 377d299ee7..3b26f0f763 100644
--- a/sound/mixer.h
+++ b/sound/mixer.h
@@ -154,6 +154,9 @@ public:
/** set the channel balance for the given handle (-127 ... 0 ... 127) (left ... center ... right)*/
void setChannelBalance(PlayingSoundHandle handle, int8 balance);
+ /** get approximation of for how long the channel has been playing */
+ uint32 getChannelElapsedTime(PlayingSoundHandle handle);
+
/** Check whether any SFX channel is active.*/
bool hasActiveSFXChannel();