diff options
author | Max Horn | 2006-10-28 01:28:41 +0000 |
---|---|---|
committer | Max Horn | 2006-10-28 01:28:41 +0000 |
commit | 10478617c699ad1e6fa272c5609cc743efd98fab (patch) | |
tree | b177dd3393a4d7924d11b58fdcb91c865a2f763f /engines/scumm/smush/saud_channel.cpp | |
parent | a3bc66bcbd15fa6532b6f502cde42e06fbbb1a6a (diff) | |
download | scummvm-rg350-10478617c699ad1e6fa272c5609cc743efd98fab.tar.gz scummvm-rg350-10478617c699ad1e6fa272c5609cc743efd98fab.tar.bz2 scummvm-rg350-10478617c699ad1e6fa272c5609cc743efd98fab.zip |
SCUMM: Take advantage of the fact that Chunk now is a ReadStream subclass
svn-id: r24546
Diffstat (limited to 'engines/scumm/smush/saud_channel.cpp')
-rw-r--r-- | engines/scumm/smush/saud_channel.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; |