aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/audiostream.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp
index 795953c3a8..e8e90de4fa 100644
--- a/sound/audiostream.cpp
+++ b/sound/audiostream.cpp
@@ -144,6 +144,7 @@ public:
} else {
_numLoops = 1;
}
+ _numPlayedLoops = 0;
_origPtr = autoFreeMemory ? ptr : 0;
}
@@ -164,6 +165,7 @@ public:
void setNumLoops(uint numLoops) {
_numLoops = numLoops;
+ _numPlayedLoops = 0;
if (numLoops == 1) {
_loopPtr = 0;