|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AudioStream
An 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.
Method Summary | |
---|---|
float[] |
read()
Reads the next sample frame. |
void |
read(MultiChannelBuffer buffer)
Reads buffer.getBufferSize() sample frames and puts them into buffer's channels. |
Methods inherited from interface ddf.minim.spi.AudioResource |
---|
close, getControls, getFormat, open |
Method Detail |
---|
float[] read()
void read(MultiChannelBuffer buffer)
buffer
- The MultiChannelBuffer to fill with audio samples.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |