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

Channel mapper. More...

#include <channel_mapper.h>

Inheritance diagram for roc::audio::ChannelMapper:
Collaboration diagram for roc::audio::ChannelMapper:

Public Member Functions

 ChannelMapper (const ChannelSet &in_chans, const ChannelSet &out_chans)
 Initialize. More...
 
void map (const sample_t *in_samples, size_t n_in_samples, sample_t *out_samples, size_t n_out_samples)
 Map samples. More...
 

Detailed Description

Channel mapper.

Converts between input and output samples with specified channel sets.

Supports converting between:

  • different channel layouts (e.g. surround, multitrack)
  • different channel orders (e.g. smpte, alsa)
  • different channel masks (e.g. stereo, mono)

Definition at line 30 of file channel_mapper.h.

Constructor & Destructor Documentation

◆ ChannelMapper()

roc::audio::ChannelMapper::ChannelMapper ( const ChannelSet in_chans,
const ChannelSet out_chans 
)

Initialize.

Member Function Documentation

◆ map()

void roc::audio::ChannelMapper::map ( const sample_t in_samples,
size_t  n_in_samples,
sample_t out_samples,
size_t  n_out_samples 
)

Map samples.


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