AudioTrack.WrittenFramesCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the number of audio frames written to a #MODE_STREAMAudioTrack.
public virtual long WrittenFramesCount { [Android.Runtime.Register("getWrittenFramesCount", "()J", "GetGetWrittenFramesCountHandler", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getWrittenFramesCount", "()J", "GetGetWrittenFramesCountHandler", ApiSince=37)>]
member this.WrittenFramesCount : int64
Property Value
the number of frames written.
- Attributes
Remarks
Returns the number of audio frames written to a MODE_STREAM AudioTrack.
The counter starts from zero and is incremented for every successful write(byte, int, int) call to a MODE_STREAM AudioTrack, and is set to the return value of a successful flushWrittenFramesFromPosition(long, int) call. This counter is not reset when the track is flushed by flush(), stopped by stop(), or paused by pause(). The frames returned by this method represents the current frame position for flushWrittenFramesFromPosition(long, int). It does not represent the actual frames rendered.
Android reference for android.media.AudioTrack.getWrittenFramesCount.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.