Skip to content

Commit

Permalink
XEEN: Fix playback of VOC resources
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 17, 2016
1 parent ad9e00d commit 94606db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/xeen/sound.cpp
Expand Up @@ -20,6 +20,7 @@
*
*/

#include "audio/decoders/raw.h"
#include "audio/decoders/voc.h"
#include "xeen/sound.h"
#include "xeen/xeen.h"
Expand All @@ -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);
}

Expand Down

0 comments on commit 94606db

Please sign in to comment.