public abstract class SampleBuffer extends AbstractFilter
sampleSize, source
Constructor and Description |
---|
SampleBuffer(SampleProvider source,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
fetchSample(float[] sample,
int off)
Fetches a sample from a sensor or filter.
|
protected int |
getActualSize() |
int |
getBufferSize() |
protected void |
getOldest(float[] sample,
int off) |
sampleSize
public SampleBuffer(SampleProvider source, int bufferSize)
public int getBufferSize()
public void fetchSample(float[] sample, int off)
SampleProvider
fetchSample
in interface SampleProvider
fetchSample
in class AbstractFilter
sample
- The array to store the sample in.off
- The elements of the sample are stored in the array starting at the offset position.protected void getOldest(float[] sample, int off)
protected int getActualSize()