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

Pcm mapper writer. Reads frames from nested writer and maps them to another pcm mask. More...

#include <pcm_mapper_writer.h>

Inheritance diagram for roc::audio::PcmMapperWriter:
Collaboration diagram for roc::audio::PcmMapperWriter:

Public Member Functions

 PcmMapperWriter (IFrameWriter &writer, 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 void write (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

Pcm mapper writer. Reads frames from nested writer and maps them to another pcm mask.

Definition at line 29 of file pcm_mapper_writer.h.

Constructor & Destructor Documentation

◆ PcmMapperWriter()

roc::audio::PcmMapperWriter::PcmMapperWriter ( IFrameWriter writer,
FrameFactory frame_factory,
const SampleSpec in_spec,
const SampleSpec out_spec 
)

Initialize.

Member Function Documentation

◆ is_valid()

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

Check if the object was succefully constructed.

◆ write()

virtual void roc::audio::PcmMapperWriter::write ( Frame frame)
virtual

Read audio frame.

Implements roc::audio::IFrameWriter.


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