Compartir a través de


AudioTimestamp.NanoTime Property

Definition

Time associated with the frame in the audio pipeline.

[Android.Runtime.Register("nanoTime")]
public long NanoTime { get; set; }
[<Android.Runtime.Register("nanoTime")>]
member this.NanoTime : int64 with get, set

Property Value

Attributes

Remarks

Time associated with the frame in the audio pipeline.

When obtained through AudioRecord#getTimestamp AudioRecord.getTimestamp(AudioTimestamp, int), this is the estimated time in nanoseconds when the frame referred to by #framePosition was captured. The timebase is either #TIMEBASE_MONOTONIC or #TIMEBASE_BOOTTIME, depending on the timebase parameter used in AudioRecord#getTimestamp AudioRecord.getTimestamp(AudioTimestamp, int).

When obtained through AudioTrack#getTimestamp AudioTrack.getTimestamp(AudioTimestamp), this is the estimated time when the frame was presented or is committed to be presented, with a timebase of #TIMEBASE_MONOTONIC.

Java documentation for android.media.AudioTimestamp.nanoTime.

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.

Applies to