From a798c97386a842d06d290797ba5dce95d031332a Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Sat, 3 Nov 2012 23:37:53 -0700 Subject: improve SINC resampler performance The improvement is about 60% by just tweaking a few things to help the compiler generate better code. It turns out that inlining too much stuff manually was hurting us. Change-Id: I8068f0f75051f95ac600e50ce552572dd1e8c304 --- services/audioflinger/AudioResamplerSinc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/audioflinger/AudioResamplerSinc.h') diff --git a/services/audioflinger/AudioResamplerSinc.h b/services/audioflinger/AudioResamplerSinc.h index 48bc747..3a6e356 100644 --- a/services/audioflinger/AudioResamplerSinc.h +++ b/services/audioflinger/AudioResamplerSinc.h @@ -50,7 +50,7 @@ private: template inline void filterCoefficient( - int32_t& l, int32_t& r, uint32_t phase, const int16_t *samples); + int32_t& l, int32_t& r, uint32_t phase, const int16_t *samples, uint32_t vRL); template inline void interpolate( -- cgit v1.1