aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/sound.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-30 18:15:17 +0000
committerJohannes Schickel2010-01-30 18:15:17 +0000
commitf79b474ea756774d4b4de443fbee47b182869935 (patch)
treed026818c3ada0671c53eaf80e7b250f0f012803a /engines/scumm/sound.cpp
parent5539f0d3589ed5a30a31c71f3b8f1f9e899c5369 (diff)
downloadscummvm-rg350-f79b474ea756774d4b4de443fbee47b182869935.tar.gz
scummvm-rg350-f79b474ea756774d4b4de443fbee47b182869935.tar.bz2
scummvm-rg350-f79b474ea756774d4b4de443fbee47b182869935.zip
Use SubLoopingAudioStream instead of makeLoopingAudioStream in SCUMM. (Incorrect replacement introduced with r47715, thanks to Max for spotting this).
svn-id: r47722
Diffstat (limited to 'engines/scumm/sound.cpp')
-rw-r--r--engines/scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 69b298d30d..aed412039a 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -350,7 +350,7 @@ void Sound::playSound(int soundID) {
size -= waveSize;
Audio::SeekableAudioStream *s = Audio::makeRawStream(sound, waveSize, rate, Audio::FLAG_UNSIGNED);
- stream = Audio::makeLoopingAudioStream(s, Audio::Timestamp(0, loopStart, rate), Audio::Timestamp(0, loopEnd, rate), 0);
+ stream = new Audio::SubLoopingAudioStream(s, 0, Audio::Timestamp(0, loopStart, rate), Audio::Timestamp(0, loopEnd, rate));
_mixer->playInputStream(Audio::Mixer::kSFXSoundType, NULL, stream, soundID, 255, 0);
}
break;
@@ -441,7 +441,7 @@ void Sound::playSound(int soundID) {
// TODO: Currently we will only ever play till "loopEnd", even when we only have
// a finite repetition count.
- stream = Audio::makeLoopingAudioStream(plainStream, Audio::Timestamp(0, loopStart, rate), Audio::Timestamp(0, loopEnd, rate), loopcount == 255 ? 0 : loopcount);
+ stream = new Audio::SubLoopingAudioStream(plainStream, loopcount == 255 ? 0 : loopcount, Audio::Timestamp(0, loopStart, rate), Audio::Timestamp(0, loopEnd, rate));
} else {
stream = plainStream;
}