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

Resampler element for reading pipeline. More...

#include <resampler_reader.h>

Inheritance diagram for roc::audio::ResamplerReader:
Collaboration diagram for roc::audio::ResamplerReader:

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 >
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 reading pipeline.

Definition at line 30 of file resampler_reader.h.

Constructor & Destructor Documentation

◆ ResamplerReader()

roc::audio::ResamplerReader::ResamplerReader ( IFrameReader reader,
IResampler resampler,
const SampleSpec in_sample_spec,
const SampleSpec out_sample_spec 
)

Initialize.

Member Function Documentation

◆ is_valid()

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

Check if object is successfully constructed.

◆ read()

virtual bool roc::audio::ResamplerReader::read ( Frame )
virtual

Read audio frame.

Implements roc::audio::IFrameReader.

◆ set_scaling()

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

Set new resample factor.


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