diff options
author | Max Horn | 2008-05-24 22:41:15 +0000 |
---|---|---|
committer | Max Horn | 2008-05-24 22:41:15 +0000 |
commit | 68fd8b74b0a42279056a4143455bb8b40dc83ca9 (patch) | |
tree | a76c9b9787551c6f02f919add9b7fe2574568ee4 /sound/audiostream.h | |
parent | f2d72d9473be5dd3d942976e8ed84d58d746def9 (diff) | |
download | scummvm-rg350-68fd8b74b0a42279056a4143455bb8b40dc83ca9.tar.gz scummvm-rg350-68fd8b74b0a42279056a4143455bb8b40dc83ca9.tar.bz2 scummvm-rg350-68fd8b74b0a42279056a4143455bb8b40dc83ca9.zip |
Patch #1970427: AudioStream play length querying
svn-id: r32258
Diffstat (limited to 'sound/audiostream.h')
-rw-r--r-- | sound/audiostream.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sound/audiostream.h b/sound/audiostream.h index ed6b37e51c..45740ba2ae 100644 --- a/sound/audiostream.h +++ b/sound/audiostream.h @@ -93,6 +93,20 @@ public: * NULL in case of an error (e.g. invalid/nonexisting file) */ static AudioStream* openStreamFile(const Common::String &basename, uint32 startTime = 0, uint32 duration = 0, uint numLoops = 1); + + enum { + kUnknownPlayTime = -1 + }; + + /** + * Returns total playtime of the AudioStream object. + * Note that this does not require to return an playtime, if the + * playtime of the AudioStream is unknown it returns 'kUnknownPlayTime'. + * @see kUnknownPlayTime + * + * @return playtime in milliseconds + */ + int32 getTotalPlayTime() const { return kUnknownPlayTime; } }; /** |