summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResamplerDyn.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-01-03 12:30:41 -0800
committerAndy Hung <hunga@google.com>2014-01-08 17:54:27 -0800
commit6582f2b14a21e630654c5522ef9ad64e80d5058d (patch)
tree69dee04c065feec40569f144281f36e885b7d15b /services/audioflinger/AudioResamplerDyn.h
parent0bcfa88149e2404b34d13c622e3921e1b846cdf8 (diff)
downloadframeworks_av-6582f2b14a21e630654c5522ef9ad64e80d5058d.zip
frameworks_av-6582f2b14a21e630654c5522ef9ad64e80d5058d.tar.gz
frameworks_av-6582f2b14a21e630654c5522ef9ad64e80d5058d.tar.bz2
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 <hunga@google.com>
Diffstat (limited to 'services/audioflinger/AudioResamplerDyn.h')
-rw-r--r--services/audioflinger/AudioResamplerDyn.h3
1 files changed, 2 insertions, 1 deletions
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
};