Fix for bug #1153648 (Compressed BUN files play incorrectly on BE systems)

svn-id: r17014
This commit is contained in:
Max Horn
2005-03-06 23:15:57 +00:00
parent 89ecfa29ba
commit 81eadf1a35
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -176,8 +176,11 @@ void IMuseDigital::saveOrLoad(Serializer *ser) {
} else
error("IMuseDigital::saveOrLoad(): Can't handle %d bit samples", bits);
#ifdef SCUMM_LITTLE_ENDIAN
#error foo
if (track->compressed)
track->mixerFlags |= SoundMixer::FLAG_LITTLE_ENDIAN;
#endif
int32 streamBufferSize = track->iteration;
track->stream2 = NULL;
+2
View File
@@ -150,8 +150,10 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType,
} else
error("IMuseDigital::startSound(): Can't handle %d bit samples", bits);
#ifdef SCUMM_LITTLE_ENDIAN
if (track->compressed)
track->mixerFlags |= SoundMixer::FLAG_LITTLE_ENDIAN;
#endif
}
if (input) {