| Constructor and Description |
|---|
GsmTrackImpl(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.
|
int |
getPeriod() |
Frame |
process(long timestamp)
Fills buffer with next portion of media data.
|
void |
setMediaTime(long timestamp)
Rewinds track to the specified timestamp.
|
void |
setPeriod(int period) |
public GsmTrackImpl(URL url) throws UnsupportedAudioFileException, IOException
public void setPeriod(int period)
public int getPeriod()
public 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 Trackpublic Frame process(long timestamp) throws IOException
Trackprocess in interface Tracktimestamp - - current media time expressed in nanosecondsIOExceptionpublic void close()
TrackCopyright © 2017 TeleStax, Inc.. All Rights Reserved.