12#ifndef ROC_AUDIO_CHANNEL_MAPPER_READER_H_
13#define ROC_AUDIO_CHANNEL_MAPPER_READER_H_
44 bool read_(
sample_t* out_samples,
size_t n_samples,
unsigned& flags);
50 const bool mapper_enabled_;
Channel mapper reader. Reads frames from nested reader and maps them to another channel mask.
bool valid() const
Check if the object was succefully constructed.
ChannelMapperReader(IFrameReader &reader, core::BufferFactory< sample_t > &buffer_factory, core::nanoseconds_t frame_length, const SampleSpec &in_spec, const SampleSpec &out_spec)
Initialize.
virtual bool read(Frame &frame)
Read audio frame.
Channel mapper. Converts between frames with specified channel masks.
Sample stream specification. Defines sample rate and channel layout.
Base class for non-copyable objects.
float sample_t
Audio sample.
int64_t nanoseconds_t
Nanoseconds.
Commonly used types and functions.