| Constructor and Description |
|---|
AMRTrackImpl(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream.
|
long |
getDuration()
Gets duration of this track.
|
Format |
getFormat()
Gets the format of this audio stream.
|
long |
getMediaTime()
Gets the current media time.
|
Frame |
process(long timestamp)
Fills buffer with next portion of media data.
|
void |
setMediaTime(long timestamp)
Rewinds track to the specified timestamp.
|
public AMRTrackImpl(URL url) throws IOException
IOExceptionpublic Format getFormat()
Trackpublic Frame process(long timestamp) throws IOException
Trackprocess in interface Tracktimestamp - - current media time expressed in nanosecondsIOExceptionpublic void close()
Trackpublic long getMediaTime()
TrackgetMediaTime in interface Trackpublic void setMediaTime(long timestamp)
TracksetMediaTime in interface Tracktimestamp - the value of the time in nanosecondpublic long getDuration()
TrackgetDuration in interface TrackCopyright © 2017 TeleStax, Inc.. All Rights Reserved.