Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Resampler element for writing pipeline. More...
#include <resampler_writer.h>
Public Member Functions | |
ResamplerWriter (IFrameWriter &writer, IResampler &resampler, FrameFactory &frame_factory, 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 void | write (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 writing pipeline.
Definition at line 31 of file resampler_writer.h.
roc::audio::ResamplerWriter::ResamplerWriter | ( | IFrameWriter & | writer, |
IResampler & | resampler, | ||
FrameFactory & | frame_factory, | ||
const SampleSpec & | in_sample_spec, | ||
const SampleSpec & | out_sample_spec | ||
) |
Initialize.
bool roc::audio::ResamplerWriter::is_valid | ( | ) | const |
Check if object is successfully constructed.
bool roc::audio::ResamplerWriter::set_scaling | ( | float | multiplier | ) |
Set new resample factor.
|
virtual |
Read audio frame.
Implements roc::audio::IFrameWriter.