diff options
author | Glenn Kasten <gkasten@google.com> | 2014-07-03 11:18:43 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-07-03 16:28:40 -0700 |
commit | 7c6f87856c0880ee39c2107a0fc3c9b41f8c195c (patch) | |
tree | d4c39874f5524d0ef7c701d34136f719adab0a5a /include/media/AudioRecord.h | |
parent | 0d3679e21146bfa497c38842c80ae1f9906a042a (diff) | |
download | frameworks_av-7c6f87856c0880ee39c2107a0fc3c9b41f8c195c.zip frameworks_av-7c6f87856c0880ee39c2107a0fc3c9b41f8c195c.tar.gz frameworks_av-7c6f87856c0880ee39c2107a0fc3c9b41f8c195c.tar.bz2 |
Add new API AudioRecord::notificationFrames()
Change-Id: I27fb888f01ed547242ffaa8d4626d38c7999ad53
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r-- | include/media/AudioRecord.h | 5 |
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. |