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

Channel mapper reader. Reads frames from nested reader and maps them to another channel mask. More...

#include <channel_mapper_reader.h>

Inheritance diagram for roc::audio::ChannelMapperReader:
Collaboration diagram for roc::audio::ChannelMapperReader:

Public Member Functions

 ChannelMapperReader (IFrameReader &reader, FrameFactory &frame_factory, const SampleSpec &in_spec, const SampleSpec &out_spec)
 Initialize. More...
 
bool is_valid () const
 Check if the object was succefully constructed. More...
 
virtual bool read (Frame &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

Channel mapper reader. Reads frames from nested reader and maps them to another channel mask.

Definition at line 28 of file channel_mapper_reader.h.

Constructor & Destructor Documentation

◆ ChannelMapperReader()

roc::audio::ChannelMapperReader::ChannelMapperReader ( IFrameReader reader,
FrameFactory frame_factory,
const SampleSpec in_spec,
const SampleSpec out_spec 
)

Initialize.

Member Function Documentation

◆ is_valid()

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

Check if the object was succefully constructed.

◆ read()

virtual bool roc::audio::ChannelMapperReader::read ( Frame frame)
virtual

Read audio frame.

Implements roc::audio::IFrameReader.


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