public class MemoryAudioSource extends AudioStream
| Constructor and Description |
|---|
MemoryAudioSource(AudioStream as)
Constructor that takes the audio stream to buffer.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLength()
For live streams, returns the length of the buffered audio,
otherwise returns the length of the original stream.
|
SampleChunk |
nextSampleChunk()
Retrieve the next SampleChunk from the audio stream.
|
void |
reset()
Reset the audio stream.
|
iterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MemoryAudioSource(AudioStream as)
as - The audio streampublic SampleChunk nextSampleChunk()
nextSampleChunk in class AudioStreamAudioStream.nextSampleChunk()public void reset()
reset in class AudioStreamAudioStream.reset()public long getLength()
getLength in class AudioStreamAudioStream.getLength()