From b3c6751b9b7fc1401fd5e87a034cdaec92b67b20 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 24 May 2009 15:17:42 +0000 Subject: Strip trailing whitespaces in the whole code base. svn-id: r40867 --- sound/adpcm.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sound/adpcm.cpp') diff --git a/sound/adpcm.cpp b/sound/adpcm.cpp index a5f2f7c4eb..37b14140b7 100644 --- a/sound/adpcm.cpp +++ b/sound/adpcm.cpp @@ -112,12 +112,12 @@ public: ADPCMInputStream::ADPCMInputStream(Common::SeekableReadStream *stream, bool disposeAfterUse, uint32 size, typesADPCM type, int rate, int channels, uint32 blockAlign, uint numLoops) : _stream(stream), _disposeAfterUse(disposeAfterUse), _channels(channels), _type(type), _blockAlign(blockAlign), _rate(rate), _numLoops(numLoops) { - + if (type == kADPCMMSIma && blockAlign == 0) error("ADPCMInputStream(): blockAlign isn't specified for MS IMA ADPCM"); if (type == kADPCMMS && blockAlign == 0) error("ADPCMInputStream(): blockAlign isn't specified for MS ADPCM"); - + if (type == kADPCMTinsel4 && blockAlign == 0) error("ADPCMInputStream(): blockAlign isn't specified for Tinsel 4-bit ADPCM"); if (type == kADPCMTinsel6 && blockAlign == 0) @@ -131,7 +131,7 @@ ADPCMInputStream::ADPCMInputStream(Common::SeekableReadStream *stream, bool disp error("ADPCMInputStream(): Tinsel 6-bit ADPCM only supports mono"); if (type == kADPCMTinsel8 && channels != 1) error("ADPCMInputStream(): Tinsel 8-bit ADPCM only supports mono"); - + _startpos = stream->pos(); _endpos = _startpos + size; _curLoop = 0; @@ -182,7 +182,7 @@ int ADPCMInputStream::readBuffer(int16 *buffer, const int numSamples) { error("Unsupported ADPCM encoding"); break; } - + // Loop if necessary if (samplesDecoded < numSamples || _stream->pos() == _endpos) { _curLoop++; @@ -192,7 +192,7 @@ int ADPCMInputStream::readBuffer(int16 *buffer, const int numSamples) { return samplesDecoded + readBuffer(buffer + samplesDecoded, numSamples - samplesDecoded); } } - + return samplesDecoded; } -- cgit v1.2.3