TOLTECS: Fixed compilation with the latest trunk changes

This commit is contained in:
Filippos Karapetis 2010-01-23 13:45:34 +00:00 committed by Willem Jan Palenstijn
parent 69f35c8709
commit baf4218b05

View File

@ -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;