public static class IMedia.AudioTrackSample extends IMedia.AbstractTrackSample implements IMedia.ITrackSample
AudioTrackSample
- audio track sample.Modifier and Type | Field and Description |
---|---|
int |
id
Sample id.
|
int |
rtime
Sample time, relative to the previous (in milliseconds).
|
short |
size
Sample size (in bytes).
|
int |
timestamp
Sample timestamp, relative to the track start time (in milliseconds).
|
track
Constructor and Description |
---|
AudioTrackSample(MediaTrackInfo track,
long id,
int rtime,
long timestamp,
long size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getId() |
int |
getRtime() |
long |
getSize() |
long |
getTimestamp() |
java.lang.String |
toString() |
getTrack, isKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTrack, isKey
public final int id
public final int rtime
Note: This is coding/decoding timestamp.
public final int timestamp
Note: This is presentation timestamp.
public final short size
public AudioTrackSample(MediaTrackInfo track, long id, int rtime, long timestamp, long size)
track
- sample trackid
- sample idrtime
- sample relative timestamp (relative to the previous sample)timestamp
- sample timestampsize
- sample size (in bytes)public long getId()
getId
in interface IMedia.ITrackSample
public int getRtime()
getRtime
in interface IMedia.ITrackSample
Note:
- This is coding/decoding timestamp.
public long getTimestamp()
getTimestamp
in interface IMedia.ITrackSample
Note:
- This is presentation timestamp.
public long getSize()
getSize
in interface IMedia.ITrackSample
public java.lang.String toString()
toString
in class java.lang.Object