aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorAlyssa Milburn2011-05-23 16:48:39 +0200
committerAlyssa Milburn2011-05-23 16:49:52 +0200
commit76b8afc33607718da0955b6bd782dab15ef049dd (patch)
tree8d83ba1af7bec3073752ec0d603fb5cd73ddc80e /engines/sword25
parent45f9720f7c9f9b2b189ee74c2b167794a8a613f8 (diff)
downloadscummvm-rg350-76b8afc33607718da0955b6bd782dab15ef049dd.tar.gz
scummvm-rg350-76b8afc33607718da0955b6bd782dab15ef049dd.tar.bz2
scummvm-rg350-76b8afc33607718da0955b6bd782dab15ef049dd.zip
SWORD25: Fix Theora audio endianism
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/fmv/theora_decoder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sword25/fmv/theora_decoder.cpp b/engines/sword25/fmv/theora_decoder.cpp
index 18f12607a5..be6d940d23 100644
--- a/engines/sword25/fmv/theora_decoder.cpp
+++ b/engines/sword25/fmv/theora_decoder.cpp
@@ -445,7 +445,11 @@ bool TheoraDecoder::queueAudio() {
_audiobufFill += (i * _vorbisInfo.channels) << 1;
if (_audiobufFill == AUDIOFD_FRAGSIZE) {
- _audStream->queueBuffer((byte *)_audiobuf, AUDIOFD_FRAGSIZE, DisposeAfterUse::NO, Audio::FLAG_16BITS | Audio::FLAG_LITTLE_ENDIAN | Audio::FLAG_STEREO);
+ byte flags = Audio::FLAG_16BITS | Audio::FLAG_STEREO;
+#ifdef SCUMM_LITTLE_ENDIAN
+ flags |= Audio::FLAG_LITTLE_ENDIAN;
+#endif
+ _audStream->queueBuffer((byte *)_audiobuf, AUDIOFD_FRAGSIZE, DisposeAfterUse::NO, flags);
// The audio mixer is now responsible for the old audio buffer.
// We need to create a new one.