From 10478617c699ad1e6fa272c5609cc743efd98fab Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 28 Oct 2006 01:28:41 +0000 Subject: SCUMM: Take advantage of the fact that Chunk now is a ReadStream subclass svn-id: r24546 --- engines/scumm/smush/saud_channel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/scumm/smush/saud_channel.cpp') diff --git a/engines/scumm/smush/saud_channel.cpp b/engines/scumm/smush/saud_channel.cpp index 09d7034ea8..7a0f146e10 100644 --- a/engines/scumm/smush/saud_channel.cpp +++ b/engines/scumm/smush/saud_channel.cpp @@ -133,10 +133,8 @@ bool SaudChannel::checkParameters(int32 index, int32 nb, int32 flags, int32 volu bool SaudChannel::appendData(Chunk &b, int32 size) { if (_dataSize == -1) { assert(size > 8); - Chunk::type saud_type = b.readUint32LE(); - saud_type = SWAP_BYTES_32(saud_type); - uint32 saud_size = b.readUint32LE(); - saud_size = SWAP_BYTES_32(saud_size); + Chunk::type saud_type = b.readUint32BE(); + /*uint32 saud_size =*/ b.readUint32BE(); if (saud_type != MKID_BE('SAUD')) error("Invalid Chunk for SaudChannel : %X", saud_type); size -= 8; -- cgit v1.2.3