From e53b9ead781c36e96d6b6f012ddffc93a3d80f0d Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Mon, 12 Mar 2012 16:29:55 -0700 Subject: Whitespace and indentation Fix indentation to be multiple of 4. Make it easier to search: sp< not sp < to "switch (...)" instead of "switch(...)" (also "if" and "while") Remove redundant blank line at start or EOF. Remove whitespace at end of line. Remove extra blank lines where they don't add value. Use git diff -b or -w to verify. Change-Id: I966b7ba852faa5474be6907fb212f5e267c2874e --- services/audioflinger/AudioResamplerSinc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/audioflinger/AudioResamplerSinc.cpp') diff --git a/services/audioflinger/AudioResamplerSinc.cpp b/services/audioflinger/AudioResamplerSinc.cpp index d373c08..76662d8 100644 --- a/services/audioflinger/AudioResamplerSinc.cpp +++ b/services/audioflinger/AudioResamplerSinc.cpp @@ -222,7 +222,7 @@ void AudioResamplerSinc::resample(int32_t* out, size_t outFrameCount, } else { read(impulse, phaseFraction, mBuffer.i16, inputIndex); } - } + } } int16_t *in = mBuffer.i16; const size_t frameCount = mBuffer.frameCount; @@ -247,7 +247,7 @@ void AudioResamplerSinc::resample(int32_t* out, size_t outFrameCount, if (inputIndex >= frameCount) break; // need a new buffer read(impulse, phaseFraction, in, inputIndex); - } else if(phaseIndex == 2) { // maximum value + } else if (phaseIndex == 2) { // maximum value inputIndex++; if (inputIndex >= frameCount) break; // 0 frame available, 2 frames needed -- cgit v1.1