From: Glenn Kasten Date: Thu, 3 Jul 2014 18:18:43 +0000 (-0700) Subject: Add new API AudioRecord::notificationFrames() X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=7c6f87856c0880ee39c2107a0fc3c9b41f8c195c;p=android-x86%2Fframeworks-av.git Add new API AudioRecord::notificationFrames() Change-Id: I27fb888f01ed547242ffaa8d4626d38c7999ad53 --- diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 6a68c94a60..f9c7efd58b 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.