aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-05 20:13:31 +0000
committerJohannes Schickel2010-01-05 20:13:31 +0000
commite9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6 (patch)
tree860360b7d34f7742c066537a6270a681b44ca751 /engines
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 'engines')
-rw-r--r--engines/kyra/sound_digital.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp
index 0687c06cc8..aaae5eaece 100644
--- a/engines/kyra/sound_digital.cpp
+++ b/engines/kyra/sound_digital.cpp
@@ -122,6 +122,7 @@ public:
// GROSS HACK, if anyone sees this, be aware that you should
// never copy this! This is just a temporary hack...
bool seek(const Audio::Timestamp &) { return false; }
+ Audio::Timestamp getLength() const { return Audio::Timestamp(0, getRate()); }
private:
Common::SeekableReadStream *_stream;
bool _loop;