aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-01 22:16:53 +0000
committerMartin Kiewitz2010-01-01 22:16:53 +0000
commitf3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1 (patch)
tree80adb235a48c16b305b178c2f9238c68a032bb98 /sound
parent0a965ced69bbc28ce16e9ae4e80a74a60f95a5e1 (diff)
downloadscummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.tar.gz
scummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.tar.bz2
scummvm-rg350-f3cd114c5ca8aa4b5b0d4db9f40c7b43dc117ce1.zip
init _numPlayedLoops inside LinearMemoryStream
svn-id: r46857
Diffstat (limited to 'sound')
-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;