summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResamplerDyn.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-03-29 00:49:22 -0700
committerAndy Hung <hunga@google.com>2015-04-08 14:31:58 -0700
commit6b3b7e304e0f8f167241b2c75f1eb04a9ef192ec (patch)
tree1cec011ad26676dc9dc3eea778e18136c083e04f /services/audioflinger/AudioResamplerDyn.h
parent25f82752942b1c78aec8ee303d61afff85cff9d1 (diff)
downloadframeworks_av-6b3b7e304e0f8f167241b2c75f1eb04a9ef192ec.zip
frameworks_av-6b3b7e304e0f8f167241b2c75f1eb04a9ef192ec.tar.gz
frameworks_av-6b3b7e304e0f8f167241b2c75f1eb04a9ef192ec.tar.bz2
Return number of frames output from resample method
Change-Id: Ic297e2ed59839f1788c83e099ef1a9e4af29591f
Diffstat (limited to 'services/audioflinger/AudioResamplerDyn.h')
-rw-r--r--services/audioflinger/AudioResamplerDyn.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/AudioResamplerDyn.h b/services/audioflinger/AudioResamplerDyn.h
index 238b163..3b1c381 100644
--- a/services/audioflinger/AudioResamplerDyn.h
+++ b/services/audioflinger/AudioResamplerDyn.h
@@ -52,7 +52,7 @@ public:
virtual void setVolume(float left, float right);
- virtual void resample(int32_t* out, size_t outFrameCount,
+ virtual size_t resample(int32_t* out, size_t outFrameCount,
AudioBufferProvider* provider);
private:
@@ -111,10 +111,10 @@ private:
int inSampleRate, int outSampleRate, double tbwCheat);
template<int CHANNELS, bool LOCKED, int STRIDE>
- void resample(TO* out, size_t outFrameCount, AudioBufferProvider* provider);
+ size_t resample(TO* out, size_t outFrameCount, AudioBufferProvider* provider);
// define a pointer to member function type for resample
- typedef void (AudioResamplerDyn<TC, TI, TO>::*resample_ABP_t)(TO* out,
+ typedef size_t (AudioResamplerDyn<TC, TI, TO>::*resample_ABP_t)(TO* out,
size_t outFrameCount, AudioBufferProvider* provider);
// data - the contiguous storage and layout of these is important.