AI-generated Key Takeaways
-
TrackData represents data recorded to a track that can be queried during playback.
-
You can retrieve the recorded byte data using
getData(). -
The
getFrameTimestamp()method provides the timestamp of the frame where the TrackData was recorded. -
The
close()method releases the native resources associated with the TrackData object.
public class
TrackData
Data that was recorded to a track. This data can be queried via Frame.getUpdatedTrackData(UUID)
during playback.
Public Methods
void
|
close()
Release the native resources for this object.
|
ByteBuffer
|
getData()
Get the byte data recorded using
Frame.recordTrackData(UUID, ByteBuffer). |
long
|
getFrameTimestamp()
Retrieves the timestamp in nanoseconds of the frame this TrackData was recorded on via
Frame.recordTrackData(UUID, ByteBuffer). |
Inherited Methods
Public Methods
public void close ()
close
public void close()
Release the native resources for this object.
public ByteBuffer getData ()
getData
public ByteBuffer getData()
Get the byte data recorded using Frame.recordTrackData(UUID, ByteBuffer). The
ByteBuffer's limit and capacity with both be set to the limit of the ByteBuffer passed in to
Frame.recordTrackData(UUID, ByteBuffer) when this was recorded.
public long getFrameTimestamp ()
getFrameTimestamp
public long getFrameTimestamp()
Retrieves the timestamp in nanoseconds of the frame this TrackData was recorded on via Frame.recordTrackData(UUID, ByteBuffer). This timestamp is equal to the result of Frame.getTimestamp() on the frame when Frame.recordTrackData(UUID, ByteBuffer) was
called.