aboutsummaryrefslogtreecommitdiff
path: root/sound/vorbis.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/vorbis.cpp')
-rw-r--r--sound/vorbis.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/vorbis.cpp b/sound/vorbis.cpp
index 1d265e6025..c80bc700fb 100644
--- a/sound/vorbis.cpp
+++ b/sound/vorbis.cpp
@@ -92,7 +92,6 @@ protected:
bool _isStereo;
int _rate;
- const uint _totalNumLoops;
uint _numLoops; ///< Number of loops to play
uint _numPlayedLoops; ///< Number of loops which have been played
@@ -126,13 +125,13 @@ public:
uint getNumPlayedLoops() { return _numPlayedLoops; }
int32 getTotalPlayTime() const {
- if (!_totalNumLoops)
+ if (!_numLoops)
return AudioStream::kUnknownPlayTime;
#ifdef USE_TREMOR
- return (_endTime - _startTime) * _totalNumLoops;
+ return (_endTime - _startTime) * _numLoops;
#else
- return (int32)((_endTime - _startTime) * 1000.0) * _totalNumLoops;
+ return (int32)((_endTime - _startTime) * 1000.0) * _numLoops;
#endif
}
@@ -144,7 +143,6 @@ VorbisInputStream::VorbisInputStream(Common::SeekableReadStream *inStream, bool
_inStream(inStream),
_disposeAfterUse(dispose),
_numLoops(numLoops),
- _totalNumLoops(numLoops),
_bufferEnd(_buffer + ARRAYSIZE(_buffer)) {
int res = ov_open_callbacks(inStream, &_ovFile, NULL, 0, g_stream_wrap);