diff options
author | Johannes Schickel | 2010-01-01 22:55:38 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-01 22:55:38 +0000 |
commit | 6109275750a3b9df41649a5787923e0578109f8b (patch) | |
tree | dbfbf06f3cb7495c9b831bf5164ce627bf76b61f /sound/flac.cpp | |
parent | 8817d6eeb5990a3eae1ce93b7ea1e6605a0868e0 (diff) | |
download | scummvm-rg350-6109275750a3b9df41649a5787923e0578109f8b.tar.gz scummvm-rg350-6109275750a3b9df41649a5787923e0578109f8b.tar.bz2 scummvm-rg350-6109275750a3b9df41649a5787923e0578109f8b.zip |
Properly reset _numPlayedLoops in setNumLoops in all AudioStream implementations implementing setNumLoops.
svn-id: r46861
Diffstat (limited to 'sound/flac.cpp')
-rw-r--r-- | sound/flac.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/flac.cpp b/sound/flac.cpp index 09c7cce7c0..d06402e192 100644 --- a/sound/flac.cpp +++ b/sound/flac.cpp @@ -151,7 +151,10 @@ public: bool isStreamDecoderReady() const { return getStreamDecoderState() == FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC ; } - void setNumLoops(uint numLoops = 1) { _numLoops = numLoops; } + void setNumLoops(uint numLoops = 1) { + _numLoops = numLoops; + _numPlayedLoops = 0; + } uint getNumPlayedLoops() { return _numPlayedLoops; } protected: |