Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::ResamplerWriter Class Reference

Resampler element for writing pipeline. More...

#include <resampler_writer.h>

Inheritance diagram for roc::audio::ResamplerWriter:
Collaboration diagram for roc::audio::ResamplerWriter:

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 >
ListDatalist_data () const
 Get pointer to internal data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from roc::core::ListNode< Tag >
static ListNodelist_node (ListData *data)
 Get pointer to parent node from pointer to internal data. More...
 

Detailed Description

Resampler element for writing pipeline.

Definition at line 31 of file resampler_writer.h.

Constructor & Destructor Documentation

◆ ResamplerWriter()

roc::audio::ResamplerWriter::ResamplerWriter ( IFrameWriter writer,
IResampler resampler,
FrameFactory frame_factory,
const SampleSpec in_sample_spec,
const SampleSpec out_sample_spec 
)

Initialize.

Member Function Documentation

◆ is_valid()

bool roc::audio::ResamplerWriter::is_valid ( ) const

Check if object is successfully constructed.

◆ set_scaling()

bool roc::audio::ResamplerWriter::set_scaling ( float  multiplier)

Set new resample factor.

◆ write()

virtual void roc::audio::ResamplerWriter::write ( Frame )
virtual

Read audio frame.

Implements roc::audio::IFrameWriter.


The documentation for this class was generated from the following file: