From 5412dac46f06570c3d241ff63b3c94b8f277bea6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 3 Apr 2010 15:56:40 +0000 Subject: Cleanup. svn-id: r48495 --- sound/decoders/raw.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sound/decoders/raw.cpp') diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp index 61884e2951..a7122ee75d 100644 --- a/sound/decoders/raw.cpp +++ b/sound/decoders/raw.cpp @@ -159,7 +159,7 @@ int RawStream::readBuffer(int16 *buffer, cons // If that is not the case, we should probably stop the // stream playback. _stream->seek(_filePos, SEEK_SET); - _stream->read(_buffer, readAmount * (is16Bit? 2: 1)); + _stream->read(_buffer, readAmount * (is16Bit ? 2 : 1)); // Amount of data in buffer is now the amount read in, and // the amount left to read on disk is decreased by the same amount @@ -231,7 +231,7 @@ bool RawStream::seek(const Timestamp &where) * particular case it should actually help it :-) */ -#define MAKE_LINEAR_DISK(STEREO, UNSIGNED) \ +#define MAKE_RAW_STREAM(STEREO, UNSIGNED) \ if (is16Bit) { \ if (isLE) \ return new RawStream(rate, disposeAfterUse, stream, blockList); \ @@ -259,15 +259,15 @@ SeekableAudioStream *makeRawStream(Common::SeekableReadStream *stream, if (isStereo) { if (isUnsigned) { - MAKE_LINEAR_DISK(true, true); + MAKE_RAW_STREAM(true, true); } else { - MAKE_LINEAR_DISK(true, false); + MAKE_RAW_STREAM(true, false); } } else { if (isUnsigned) { - MAKE_LINEAR_DISK(false, true); + MAKE_RAW_STREAM(false, true); } else { - MAKE_LINEAR_DISK(false, false); + MAKE_RAW_STREAM(false, false); } } } -- cgit v1.2.3