Package com.io7m.jsamplebuffer.api
Interface SampleBufferRateConverterType
- All Known Implementing Classes:
SXMSampleBufferRateConverter
public interface SampleBufferRateConverterType
A converter of sample rates for buffers.
-
Method Summary
Modifier and TypeMethodDescriptionconvert(SampleBufferFactoryType sampleBuffers, SampleBufferType buffer, double sampleRate) Convert the given buffer to the target sample rate (returning a new buffer).
-
Method Details
-
convert
SampleBufferType convert(SampleBufferFactoryType sampleBuffers, SampleBufferType buffer, double sampleRate) throws SampleBufferException Convert the given buffer to the target sample rate (returning a new buffer).- Parameters:
sampleBuffers- A factory of sample buffersbuffer- The source target buffersampleRate- The target sample rate- Returns:
- A new buffer containing the resampled contents of
buffer - Throws:
SampleBufferException- On errors
-