aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-17 15:59:07 -0400
committerPaul Gilbert2016-09-17 15:59:07 -0400
commit94606db1bfcfd7403fa663698ac6994de7b72d7c (patch)
treec16bcaf21a447210cece6b3c361cec6e94fc836e
parentad9e00d213115971ad298b8394eeb6f2fe7349e6 (diff)
downloadscummvm-rg350-94606db1bfcfd7403fa663698ac6994de7b72d7c.tar.gz
scummvm-rg350-94606db1bfcfd7403fa663698ac6994de7b72d7c.tar.bz2
scummvm-rg350-94606db1bfcfd7403fa663698ac6994de7b72d7c.zip
XEEN: Fix playback of VOC resources
-rw-r--r--engines/xeen/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/xeen/sound.cpp b/engines/xeen/sound.cpp
index 360cfc89da..64858dfb1f 100644
--- a/engines/xeen/sound.cpp
+++ b/engines/xeen/sound.cpp
@@ -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);
}