diff options
author | Andy Hung <hunga@google.com> | 2014-07-07 10:21:44 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2014-07-07 10:29:36 -0700 |
commit | 3348e36c51e91e78020bcc6578eda83d97c31bec (patch) | |
tree | ee3df8ed9f79863fc34589813710896a7e08af86 /services/audioflinger/AudioResamplerDyn.cpp | |
parent | 075abae2a954bf3edf18ad1705c2c0f188454ae0 (diff) | |
download | frameworks_av-3348e36c51e91e78020bcc6578eda83d97c31bec.zip frameworks_av-3348e36c51e91e78020bcc6578eda83d97c31bec.tar.gz frameworks_av-3348e36c51e91e78020bcc6578eda83d97c31bec.tar.bz2 |
Replace int bitDepth with audio_format_t in Resampler
Remove mBitDepth from class (not used).
Replace with audio_format_t in factory method to distinguish
between float and pcm 16-bit.
Change-Id: I166860796c68285077ef4458d8758d19b82523f9
Diffstat (limited to 'services/audioflinger/AudioResamplerDyn.cpp')
-rw-r--r-- | services/audioflinger/AudioResamplerDyn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/audioflinger/AudioResamplerDyn.cpp b/services/audioflinger/AudioResamplerDyn.cpp index 7ca10c1..043c803 100644 --- a/services/audioflinger/AudioResamplerDyn.cpp +++ b/services/audioflinger/AudioResamplerDyn.cpp @@ -162,9 +162,9 @@ void AudioResamplerDyn<TC, TI, TO>::Constants::set( } template<typename TC, typename TI, typename TO> -AudioResamplerDyn<TC, TI, TO>::AudioResamplerDyn(int bitDepth, +AudioResamplerDyn<TC, TI, TO>::AudioResamplerDyn( int inChannelCount, int32_t sampleRate, src_quality quality) - : AudioResampler(bitDepth, inChannelCount, sampleRate, quality), + : AudioResampler(inChannelCount, sampleRate, quality), mResampleFunc(0), mFilterSampleRate(0), mFilterQuality(DEFAULT_QUALITY), mCoefBuffer(NULL) { |