From 6582f2b14a21e630654c5522ef9ad64e80d5058d Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Fri, 3 Jan 2014 12:30:41 -0800 Subject: Improve dynamic audio resampler filter generation Improve dynamic audio resampler filter generation speed by 2x. The resulting filters should be the same (excepting roundoff). Also added check for upsampling sample rate changes to share previously generated filters. Modify the profiling to improve output format and sampling result reliability. Change-Id: I9aa6b914fd552a63f79dd4a95945df2f8275772a Signed-off-by: Andy Hung --- services/audioflinger/AudioResamplerDyn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'services/audioflinger/AudioResamplerDyn.h') diff --git a/services/audioflinger/AudioResamplerDyn.h b/services/audioflinger/AudioResamplerDyn.h index 85a01ab..df1fdbe 100644 --- a/services/audioflinger/AudioResamplerDyn.h +++ b/services/audioflinger/AudioResamplerDyn.h @@ -113,7 +113,8 @@ private: Constants mConstants; // current set of coefficient parameters int32_t __attribute__ ((aligned (8))) mVolumeSimd[2]; int32_t mResampleType; // contains the resample type. - int32_t mFilterSampleRate; // designed sample rate for the filter + int32_t mFilterSampleRate; // designed filter sample rate. + src_quality mFilterQuality; // designed filter quality. void* mCoefBuffer; // if a filter is created, this is not null }; -- cgit v1.1