[Scummvm-git-logs] scummvm master -> 94606db1bfcfd7403fa663698ac6994de7b72d7c

dreammaster dreammaster at scummvm.org
Sat Sep 17 22:00:15 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
94606db1bf XEEN: Fix playback of VOC resources


Commit: 94606db1bfcfd7403fa663698ac6994de7b72d7c
    https://github.com/scummvm/scummvm/commit/94606db1bfcfd7403fa663698ac6994de7b72d7c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-09-17T15:59:07-04:00

Commit Message:
XEEN: Fix playback of VOC resources

Changed paths:
    engines/xeen/sound.cpp



diff --git a/engines/xeen/sound.cpp b/engines/xeen/sound.cpp
index 360cfc8..64858df 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);
 }
 





More information about the Scummvm-git-logs mailing list