Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Audio writer interface. More...
#include <iresampler.h>
Public Member Functions | |
IResampler (core::IArena &arena) | |
Initialization. More... | |
virtual | ~IResampler () |
Deinitialization. More... | |
virtual bool | is_valid () const =0 |
Check if object is successfully constructed. More... | |
virtual bool | set_scaling (size_t input_rate, size_t output_rate, float multiplier)=0 |
Set new resample factor. More... | |
virtual const core::Slice< sample_t > & | begin_push_input ()=0 |
Get buffer to be filled with input data. More... | |
virtual void | end_push_input ()=0 |
Commit buffer with input data. More... | |
virtual size_t | pop_output (sample_t *out_data, size_t out_size)=0 |
Read samples from input buffer and fill output frame. More... | |
virtual float | n_left_to_process () const =0 |
How many samples were pushed but not processed yet. More... | |
Public Member Functions inherited from roc::core::RefCounted< IResampler, core::ArenaAllocation > | |
RefCounted () | |
Initialize. More... | |
RefCounted (const core::ArenaAllocation &policy) | |
Initialize. More... | |
int | getref () const |
Get reference counter. More... | |
void | incref () const |
Increment reference counter. More... | |
void | decref () const |
Decrement reference counter. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
IArena & | arena () const |
Get arena. More... | |
ArenaAllocation (IArena &arena) | |
Initialize. More... | |
template<class T > | |
void | destroy (T &object) |
Destroy object and return memory to arena. More... | |
Audio writer interface.
Definition at line 24 of file iresampler.h.
roc::audio::IResampler::IResampler | ( | core::IArena & | arena | ) |
Initialization.
|
virtual |
Deinitialization.
|
pure virtual |
Get buffer to be filled with input data.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.
|
pure virtual |
Commit buffer with input data.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.
|
pure virtual |
Check if object is successfully constructed.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.
|
pure virtual |
How many samples were pushed but not processed yet.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.
|
pure virtual |
Read samples from input buffer and fill output frame.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.
|
pure virtual |
Set new resample factor.
Implemented in roc::audio::SpeexResampler, roc::audio::DecimationResampler, and roc::audio::BuiltinResampler.