diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2013-09-24 10:25:35 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-24 10:25:35 -0700 |
commit | 20fb283150ddbcf362c764d7b822f54e5bcdd457 (patch) | |
tree | 651ad75b0a23e08ec92a1c9eef31657550a5a456 /include | |
parent | 2e3dcb8a00b0b151a548bfa6e61547a9dce51d72 (diff) | |
parent | c7b2f9dce911026fa13854b49aa2bb5353f68499 (diff) | |
download | frameworks_av-20fb283150ddbcf362c764d7b822f54e5bcdd457.zip frameworks_av-20fb283150ddbcf362c764d7b822f54e5bcdd457.tar.gz frameworks_av-20fb283150ddbcf362c764d7b822f54e5bcdd457.tar.bz2 |
am c7b2f9dc: am 402dfba6: Merge "Add support for level measurements in Visualizer" into klp-dev
* commit 'c7b2f9dce911026fa13854b49aa2bb5353f68499':
Add support for level measurements in Visualizer
Diffstat (limited to 'include')
-rw-r--r-- | include/media/Visualizer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/Visualizer.h b/include/media/Visualizer.h index e429263..6167dd6 100644 --- a/include/media/Visualizer.h +++ b/include/media/Visualizer.h @@ -114,6 +114,14 @@ public: status_t setScalingMode(uint32_t mode); uint32_t getScalingMode() { return mScalingMode; } + // set which measurements are done on the audio buffers processed by the effect. + // valid measurements (mask): MEASUREMENT_MODE_PEAK_RMS + status_t setMeasurementMode(uint32_t mode); + uint32_t getMeasurementMode() { return mMeasurementMode; } + + // return a set of int32_t measurements + status_t getIntMeasurements(uint32_t type, uint32_t number, int32_t *measurements); + // return a capture in PCM 8 bit unsigned format. The size of the capture is equal to // getCaptureSize() status_t getWaveForm(uint8_t *waveform); @@ -156,6 +164,7 @@ private: uint32_t mCaptureSize; uint32_t mSampleRate; uint32_t mScalingMode; + uint32_t mMeasurementMode; capture_cbk_t mCaptureCallBack; void *mCaptureCbkUser; sp<CaptureThread> mCaptureThread; |