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/vorbis.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/vorbis.cpp')
-rw-r--r-- | sound/vorbis.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/vorbis.cpp b/sound/vorbis.cpp index c80bc700fb..8e0cda06c9 100644 --- a/sound/vorbis.cpp +++ b/sound/vorbis.cpp @@ -121,7 +121,10 @@ public: bool isStereo() const { return _isStereo; } int getRate() const { return _rate; } - void setNumLoops(uint numLoops = 1) { _numLoops = numLoops; } + void setNumLoops(uint numLoops) { + _numLoops = numLoops; + _numPlayedLoops = 0; + } uint getNumPlayedLoops() { return _numPlayedLoops; } int32 getTotalPlayTime() const { |