diff options
| author | Johannes Schickel | 2010-01-05 20:13:31 +0000 | 
|---|---|---|
| committer | Johannes Schickel | 2010-01-05 20:13:31 +0000 | 
| commit | e9a94ecb9b6eb20cb7cdc4f838df3f9b049d2de6 (patch) | |
| tree | 860360b7d34f7742c066537a6270a681b44ca751 /sound/flac.cpp | |
| parent | 1712e223e2e520320a5ef4edfc8ad36cd82cc4a1 (diff) | |
| download | scummvm-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/flac.cpp')
| -rw-r--r-- | sound/flac.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/sound/flac.cpp b/sound/flac.cpp index ddfd9bf329..b99f8bb484 100644 --- a/sound/flac.cpp +++ b/sound/flac.cpp @@ -150,6 +150,8 @@ public:  	}  	bool seek(const Timestamp &where); +	// TODO: We can definitly increase the precision here, since FLAC allows us to catch the sample count +	Timestamp getLength() const { return Timestamp(_totalPlayTime, getRate()); }  	bool isStreamDecoderReady() const { return getStreamDecoderState() == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC ; } | 
