aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-01-01 16:28:22 +0000
committerEugene Sandulenko2010-01-01 16:28:22 +0000
commit622dd0d16dbf735323a6fae985f0231a4ef5d393 (patch)
tree6b14067f8c501153e9b378a104ffcc91ff29647c /sound/audiostream.h
parentd1b844d3c36b9011442d3a6538bc35878b3b694e (diff)
downloadscummvm-rg350-622dd0d16dbf735323a6fae985f0231a4ef5d393.tar.gz
scummvm-rg350-622dd0d16dbf735323a6fae985f0231a4ef5d393.tar.bz2
scummvm-rg350-622dd0d16dbf735323a6fae985f0231a4ef5d393.zip
Implemented setNumLoops() for common audio streams.
Implemented getNumPlayedLoops() for common audio streams. Requested by m_kriewitz. svn-id: r46836
Diffstat (limited to 'sound/audiostream.h')
-rw-r--r--sound/audiostream.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/audiostream.h b/sound/audiostream.h
index 5f3091292d..b0f49caaea 100644
--- a/sound/audiostream.h
+++ b/sound/audiostream.h
@@ -106,7 +106,13 @@ public:
* Sets number of times the stream is supposed to get looped
* @param numLoops number of loops to play, 0 - infinite
*/
- virtual void setNumLoops(uint numLoops = 1) {};
+ virtual void setNumLoops(uint numLoops = 1) {}
+
+ /**
+ * Returns number of loops the stream has played.
+ * @param numLoops number of loops to play, 0 - infinite
+ */
+ virtual uint getNumPlayedLoops() { return 0; }
/**
* Returns total playtime of the AudioStream object.