Instead of simply returning 0 for "infinite" looping in FLAC and OGG/Vorbis streams in getTotalPlayTime return kUnknownPlayTime.
svn-id: r32265
This commit is contained in:
parent
cff8ccccc9
commit
ff573ec1e2
2 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,9 @@ public:
|
|||
int getRate() const { return _rate; }
|
||||
|
||||
int32 getTotalPlayTime() const {
|
||||
if (!_totalNumLoops)
|
||||
return AudioStream::kUnknownPlayTime;
|
||||
|
||||
#ifdef USE_TREMOR
|
||||
return (_endTime - _startTime) * _totalNumLoops;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue