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, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MemoryAudioSource(AudioStream as)
as
- The audio streampublic SampleChunk nextSampleChunk()
nextSampleChunk
in class AudioStream
AudioStream.nextSampleChunk()
public void reset()
reset
in class AudioStream
AudioStream.reset()
public long getLength()
getLength
in class AudioStream
AudioStream.getLength()