From b6102b2600f792f159320439686a872a72d20c70 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Mon, 23 Nov 2020 12:56:00 +0100 Subject: Removed trailing whitespace --- src/adpcm/adpcm.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/adpcm/adpcm.cpp') diff --git a/src/adpcm/adpcm.cpp b/src/adpcm/adpcm.cpp index c8086ab..fb0efbf 100644 --- a/src/adpcm/adpcm.cpp +++ b/src/adpcm/adpcm.cpp @@ -108,7 +108,7 @@ class TADPCMStream unsigned char * pbBufferEnd; unsigned char * pbBuffer; -}; +}; //---------------------------------------------------------------------------- // Local functions @@ -215,7 +215,7 @@ int CompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int cb // Get the initial index ChannelIndex = ChannelCount - 1; - + // Now keep reading the input data as long as there is something in the input buffer while(is.ReadWordSample(InputSample)) { @@ -240,7 +240,7 @@ int CompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int cb { if(StepIndexes[ChannelIndex] != 0) StepIndexes[ChannelIndex]--; - + os.WriteByteSample(0x80); } else @@ -284,7 +284,7 @@ int CompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int cb // Write the encoded sample to the output stream if(!os.WriteByteSample((unsigned char)EncodedSample)) break; - + // Calculates the step index to use for the next encode StepIndexes[ChannelIndex] = GetNextStepIndex(StepIndexes[ChannelIndex], EncodedSample); } @@ -377,7 +377,7 @@ int DecompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int // Encode one sample PredictedSamples[ChannelIndex] = (short)DecodeSample(PredictedSamples[ChannelIndex], - EncodedSample, + EncodedSample, StepSize, StepSize >> BitShift); -- cgit v1.2.3