Skip to content
Permalink
Browse files

ZVISION: Fix Zork AVI audio on BE systems

  • Loading branch information
wjp committed Dec 27, 2014
1 parent 58f328b commit 02eada1d0ddd5f5c179ca39840bb7f73286df6e1
Showing with 8 additions and 2 deletions.
  1. +8 −2 engines/zvision/video/zork_avi_decoder.cpp
@@ -45,8 +45,14 @@ void ZorkAVIDecoder::ZorkAVIAudioTrack::queueSound(Common::SeekableReadStream *s
RawChunkStream::RawChunk chunk = decoder->readNextChunk(stream);
delete stream;

if (chunk.data)
_audStream->queueBuffer((byte *)chunk.data, chunk.size, DisposeAfterUse::YES, Audio::FLAG_16BITS | Audio::FLAG_LITTLE_ENDIAN | Audio::FLAG_STEREO);
if (chunk.data) {
byte flags = Audio::FLAG_16BITS | Audio::FLAG_STEREO;
#ifdef SCUMM_LITTLE_ENDIAN
// RawChunkStream produces native endianness int16
flags |= Audio::FLAG_LITTLE_ENDIAN;
#endif
_audStream->queueBuffer((byte *)chunk.data, chunk.size, DisposeAfterUse::YES, flags);
}
} else {
AVIAudioTrack::queueSound(stream);
}

0 comments on commit 02eada1

Please sign in to comment.
You can’t perform that action at this time.