diff options
-rw-r--r-- | sound/audiostream.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 7d3cf935aa..f2bd30b904 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -151,6 +151,16 @@ public: int getRate() const { return _rate; } int32 getTotalPlayTime() const { return _playtime; } + + void setNumLoops(uint numLoops) { + if (numLoops == 1) { + _loopPtr = 0; + _loopEnd = 0; + } else { + _loopPtr = _ptr; + _loopEnd = _end; + } + } }; template<bool stereo, bool is16Bit, bool isUnsigned, bool isLE> |