aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-01 16:57:23 +0000
committerJohannes Schickel2010-01-01 16:57:23 +0000
commitbba2c8ce952b5242e3ff80054f1ac9cc48bcd097 (patch)
tree3a62d52c8ea2d92d7eefb9ed7e0a3698b4685f2b /sound/audiostream.h
parent54d9bf4c57d265dd0d0539ed5eb0bfe324427ea7 (diff)
downloadscummvm-rg350-bba2c8ce952b5242e3ff80054f1ac9cc48bcd097.tar.gz
scummvm-rg350-bba2c8ce952b5242e3ff80054f1ac9cc48bcd097.tar.bz2
scummvm-rg350-bba2c8ce952b5242e3ff80054f1ac9cc48bcd097.zip
Fix getTotalPlayTime for MP3, FLAC, Vorbis and LinearMemoryStream after the latest loop related changes.
svn-id: r46838
Diffstat (limited to 'sound/audiostream.h')
-rw-r--r--sound/audiostream.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/audiostream.h b/sound/audiostream.h
index b0f49caaea..b5c95079f3 100644
--- a/sound/audiostream.h
+++ b/sound/audiostream.h
@@ -98,10 +98,6 @@ public:
uint32 duration = 0,
uint numLoops = 1);
- enum {
- kUnknownPlayTime = -1
- };
-
/**
* Sets number of times the stream is supposed to get looped
* @param numLoops number of loops to play, 0 - infinite
@@ -114,9 +110,13 @@ public:
*/
virtual uint getNumPlayedLoops() { return 0; }
+ enum {
+ kUnknownPlayTime = -1
+ };
+
/**
* Returns total playtime of the AudioStream object.
- * Note that this does not require to return an playtime, if the
+ * Note that this does not require to return any playtime, if the
* playtime of the AudioStream is unknown it returns 'kUnknownPlayTime'.
* @see kUnknownPlayTime
*