public interface AudioStream extends AudioResource
AudioStream is a stream of samples that is coming from
somewhere. Users of an AudioStream don't really need to know
where the samples are coming from. However, typically they will be read
from a Line or a file. An AudioStream needs to
be opened before being used and closed when you are finished with it.| Modifier and Type | Method and Description |
|---|---|
float[] |
read()
Reads the next sample frame.
|
void |
read(MultiChannelBuffer buffer)
Reads buffer.getBufferSize() sample frames and puts them into buffer's channels.
|
close, getControls, getFormat, openfloat[] read()
void read(MultiChannelBuffer buffer)
buffer - The MultiChannelBuffer to fill with audio samples.