Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Resampler element for reading pipeline. More...
#include <resampler_reader.h>
Public Member Functions | |
ResamplerReader (IFrameReader &reader, IResampler &resampler, const SampleSpec &in_sample_spec, const SampleSpec &out_sample_spec) | |
Initialize. More... | |
bool | is_valid () const |
Check if object is successfully constructed. More... | |
bool | set_scaling (float multiplier) |
Set new resample factor. More... | |
virtual bool | read (Frame &) |
Read audio frame. More... | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
ListData * | list_data () const |
Get pointer to internal data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
static ListNode * | list_node (ListData *data) |
Get pointer to parent node from pointer to internal data. More... | |
Resampler element for reading pipeline.
Definition at line 30 of file resampler_reader.h.
roc::audio::ResamplerReader::ResamplerReader | ( | IFrameReader & | reader, |
IResampler & | resampler, | ||
const SampleSpec & | in_sample_spec, | ||
const SampleSpec & | out_sample_spec | ||
) |
Initialize.
bool roc::audio::ResamplerReader::is_valid | ( | ) | const |
Check if object is successfully constructed.
|
virtual |
Read audio frame.
Implements roc::audio::IFrameReader.
bool roc::audio::ResamplerReader::set_scaling | ( | float | multiplier | ) |
Set new resample factor.