public interface FloatSampleInput
Modifier and Type | Method and Description |
---|---|
int |
getChannels() |
float |
getSampleRate() |
boolean |
isDone()
Determine if this stream has reached its end.
|
void |
read(FloatSampleBuffer buffer)
Fill the entire buffer with audio data.
|
void |
read(FloatSampleBuffer buffer,
int offset,
int sampleCount)
Fill the specified portion of the buffer with the next audio data to be
read.
|
void read(FloatSampleBuffer buffer)
The buffer's channel count and sample rate may not be changed by the implementation of this method.
buffer
- the buffer to be filledvoid read(FloatSampleBuffer buffer, int offset, int sampleCount)
offset
.
The buffer's channel count and sample rate may not be changed by the implementation of this method.
buffer
- the buffer to be filledoffset
- the start index, in samples, where to start filling the
buffersampleCount
- the number fo samples to fill into the bufferboolean isDone()
int getChannels()
float getSampleRate()