aboutsummaryrefslogtreecommitdiff
path: root/sound/audiostream.h
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-05 20:13:31 +0000
committerJohannes Schickel2010-01-05 20:13:31 +0000
commite9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6 (patch)
tree860360b7d34f7742c066537a6270a681b44ca751 /sound/audiostream.h
parent1712e223e2e520320a5ef4edfc8ad36cd82cc4a1 (diff)
downloadscummvm-rg350-e9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6.tar.gz
scummvm-rg350-e9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6.tar.bz2
scummvm-rg350-e9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6.zip
Add a "getLength" function to SeekableAudioStream.
svn-id: r47036
Diffstat (limited to 'sound/audiostream.h')
-rw-r--r--sound/audiostream.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/audiostream.h b/sound/audiostream.h
index 15e7ea6d33..a3992ca94f 100644
--- a/sound/audiostream.h
+++ b/sound/audiostream.h
@@ -157,6 +157,13 @@ public:
* @return true on success, false on failure.
*/
virtual bool seek(const Timestamp &where) = 0;
+
+ /**
+ * Returns the length of the stream.
+ *
+ * @return length as Timestamp.
+ */
+ virtual Timestamp getLength() const = 0;
};