public abstract class AudioStream extends Audio
| Constructor and Description |
|---|
AudioStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getLength()
Returns the length of the audio stream in milliseconds.
|
abstract SampleChunk |
nextSampleChunk()
Retrieve the next SampleChunk from the audio stream.
|
abstract void |
reset()
Reset the audio stream.
|
void |
seek(long timestamp)
Seeks the audio to the given timestamp.
|
public AudioStream()
public abstract SampleChunk nextSampleChunk()
public abstract void reset()
public abstract long getLength()
public void seek(long timestamp)
timestamp - The timestamp to seek to