mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
MORTEVIELLE: Fix flags in playSong(). Thanks clone2727 for telling about it
This commit is contained in:
parent
80cc1700a7
commit
71a1d18b0c
@ -186,7 +186,7 @@ void SoundManager::playNote(int frequency, int32 length) {
|
||||
|
||||
|
||||
void SoundManager::playSong(const byte* buf, uint size, uint loops) {
|
||||
Audio::SeekableAudioStream *raw = Audio::makeRawStream(buf, size, 11025 / 2, Audio::FLAG_UNSIGNED | Audio::FLAG_LITTLE_ENDIAN | Audio::FLAG_16BITS, DisposeAfterUse::NO);
|
||||
Audio::SeekableAudioStream *raw = Audio::makeRawStream(buf, size, 11025, Audio::FLAG_UNSIGNED, DisposeAfterUse::NO);
|
||||
Audio::AudioStream *stream = Audio::makeLoopingAudioStream(raw, loops);
|
||||
Audio::SoundHandle songHandle;
|
||||
_mixer->playStream(Audio::Mixer::kSFXSoundType, &songHandle, stream, -1, Audio::Mixer::kMaxChannelVolume, 0, DisposeAfterUse::YES);
|
||||
|
Loading…
x
Reference in New Issue
Block a user