mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
XEEN: Fix playback of VOC resources
This commit is contained in:
parent
ad9e00d213
commit
94606db1bf
@ -20,6 +20,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "audio/decoders/raw.h"
|
||||
#include "audio/decoders/voc.h"
|
||||
#include "xeen/sound.h"
|
||||
#include "xeen/xeen.h"
|
||||
@ -39,7 +40,8 @@ void Sound::playSound(Common::SeekableReadStream &s, int unused) {
|
||||
stopSound();
|
||||
|
||||
Common::SeekableReadStream *srcStream = s.readStream(s.size());
|
||||
Audio::SeekableAudioStream *stream = Audio::makeVOCStream(srcStream, 0, DisposeAfterUse::YES);
|
||||
Audio::SeekableAudioStream *stream = Audio::makeVOCStream(srcStream,
|
||||
Audio::FLAG_UNSIGNED, DisposeAfterUse::YES);
|
||||
_mixer->playStream(Audio::Mixer::kSFXSoundType, &_soundHandle, stream);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user