aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-01-23 13:45:34 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:08 +0100
commitbaf4218b0503f56cfd7b3e20df9ff30623c37c8d (patch)
tree7c6b0739d2fc3dcb7ec58e88da8ae9f343a45559 /engines
parent69f35c87092568901e42c897ac08a786c7a46a30 (diff)
downloadscummvm-rg350-baf4218b0503f56cfd7b3e20df9ff30623c37c8d.tar.gz
scummvm-rg350-baf4218b0503f56cfd7b3e20df9ff30623c37c8d.tar.bz2
scummvm-rg350-baf4218b0503f56cfd7b3e20df9ff30623c37c8d.zip
TOLTECS: Fixed compilation with the latest trunk changes
Diffstat (limited to 'engines')
-rw-r--r--engines/toltecs/sound.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/toltecs/sound.cpp b/engines/toltecs/sound.cpp
index 42f4e107b8..c9ca777cad 100644
--- a/engines/toltecs/sound.cpp
+++ b/engines/toltecs/sound.cpp
@@ -148,11 +148,9 @@ void Sound::internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 pa
Resource *soundResource = _vm->_res->load(resIndex);
- byte flags = Audio::FLAG_UNSIGNED;
- // Background sounds
- if (type == kChannelTypeBackground)
- flags |= Audio::FLAG_LOOP;
- Audio::AudioStream *stream = Audio::makeRawMemoryStream(soundResource->data, soundResource->size, DisposeAfterUse::YES/*CHECKME*/, 22050, flags, 0, 0);
+ Audio::AudioStream *stream = Audio::makeLoopingAudioStream(
+ Audio::makeRawMemoryStream(soundResource->data, soundResource->size, DisposeAfterUse::YES/*CHECKME*/, 22050, Audio::FLAG_UNSIGNED),
+ type == kChannelTypeBackground ? 0 : 1);
channels[freeChannel].type = type;
channels[freeChannel].resIndex = resIndex;