summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-07-07 13:07:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-02 20:11:01 +0000
commit11fa4012f1c68083abfc21972f3f46da397d2c5c (patch)
tree308c1fe020d3a03bcee920a5b981e3e0df558903 /include
parent665470b36f202bcc8ee2f7417f68fd2608dd07c1 (diff)
parent7c6f87856c0880ee39c2107a0fc3c9b41f8c195c (diff)
downloadframeworks_av-11fa4012f1c68083abfc21972f3f46da397d2c5c.zip
frameworks_av-11fa4012f1c68083abfc21972f3f46da397d2c5c.tar.gz
frameworks_av-11fa4012f1c68083abfc21972f3f46da397d2c5c.tar.bz2
Merge "Add new API AudioRecord::notificationFrames()"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioRecord.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index 6a68c94..f9c7efd 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -240,6 +240,11 @@ public:
*/
uint32_t getSampleRate() const { return mSampleRate; }
+ /* Return the notification frame count.
+ * This is approximately how often the callback is invoked, for transfer type TRANSFER_CALLBACK.
+ */
+ size_t notificationFrames() const { return mNotificationFramesAct; }
+
/* Sets marker position. When record reaches the number of frames specified,
* a callback with event type EVENT_MARKER is called. Calling setMarkerPosition
* with marker == 0 cancels marker notification callback.