diff options
Diffstat (limited to 'engines/sky')
-rw-r--r-- | engines/sky/sound.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/sky/sound.cpp b/engines/sky/sound.cpp index b6792907e9..2a00dbb492 100644 --- a/engines/sky/sound.cpp +++ b/engines/sky/sound.cpp @@ -1111,17 +1111,13 @@ void Sound::playSound(uint16 sound, uint16 volume, uint8 channel) { uint32 dataLoop = READ_BE_UINT16(_sfxInfo + (sound << 3) + 6); dataOfs += _sfxBaseOfs; - byte flags = Audio::FLAG_UNSIGNED; - uint32 loopSta = 0, loopEnd = 0; if (dataLoop) { loopSta = dataSize - dataLoop; loopEnd = dataSize; - flags |= Audio::FLAG_LOOP; } - - Audio::AudioStream *stream = Audio::makeRawMemoryStream_OLD(_soundData + dataOfs, dataSize, DisposeAfterUse::NO, sampleRate, flags, loopSta, loopEnd); + Audio::AudioStream *stream = Audio::makeRawMemoryStream_OLD(_soundData + dataOfs, dataSize, DisposeAfterUse::NO, sampleRate, Audio::FLAG_UNSIGNED, loopSta, loopEnd); if (channel == 0) _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_ingameSound0, stream, SOUND_CH0, volume, 0); |