Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11fa4012 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Add new API AudioRecord::notificationFrames()"

parents 665470b3 7c6f8785
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.