![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Resamples audio stream using speex resampler. More...
#include <resampler_speex.h>
Public Member Functions | |
SpeexResampler (core::IAllocator &allocator, core::BufferFactory< sample_t > &buffer_factory, ResamplerProfile profile, core::nanoseconds_t frame_length, const audio::SampleSpec &sample_spec) | |
Initialize. | |
virtual bool | valid () const |
Check if object is successfully constructed. | |
virtual bool | set_scaling (size_t input_rate, size_t output_rate, float multiplier) |
Set new resample factor. | |
virtual const core::Slice< sample_t > & | begin_push_input () |
Get buffer to be filled with input data. | |
virtual void | end_push_input () |
Commit buffer with input data. | |
virtual size_t | pop_output (Frame &out) |
Read samples from input frame and fill output frame. | |
virtual bool | valid () const =0 |
Check if object is successfully constructed. | |
virtual bool | set_scaling (size_t input_rate, size_t output_rate, float multiplier)=0 |
Set new resample factor. | |
virtual const core::Slice< sample_t > & | begin_push_input ()=0 |
Get buffer to be filled with input data. | |
virtual void | end_push_input ()=0 |
Commit buffer with input data. | |
virtual size_t | pop_output (Frame &out)=0 |
Read samples from input buffer and fill output frame. | |
Resamples audio stream using speex resampler.
Definition at line 35 of file resampler_speex.h.
roc::audio::SpeexResampler::SpeexResampler | ( | core::IAllocator & | allocator, |
core::BufferFactory< sample_t > & | buffer_factory, | ||
ResamplerProfile | profile, | ||
core::nanoseconds_t | frame_length, | ||
const audio::SampleSpec & | sample_spec | ||
) |
Initialize.
|
virtual |
Get buffer to be filled with input data.
Implements roc::audio::IResampler.
|
virtual |
Commit buffer with input data.
Implements roc::audio::IResampler.
|
virtual |
Read samples from input frame and fill output frame.
Implements roc::audio::IResampler.
|
virtual |
Set new resample factor.
Implements roc::audio::IResampler.
|
virtual |
Check if object is successfully constructed.
Implements roc::audio::IResampler.