12#ifndef ROC_AUDIO_CHANNEL_MAPPER_WRITER_H_
13#define ROC_AUDIO_CHANNEL_MAPPER_WRITER_H_
44 void write_(
sample_t* in_samples,
size_t n_samples,
unsigned flags);
50 const bool mapper_enabled_;
Channel mapper writer. Reads frames from nested writer and maps them to another channel mask.
virtual void write(Frame &frame)
Write audio frame.
bool valid() const
Check if the object was succefully constructed.
ChannelMapperWriter(IFrameWriter &writer, core::BufferFactory< sample_t > &buffer_factory, core::nanoseconds_t frame_length, const SampleSpec &in_spec, const SampleSpec &out_spec)
Initialize.
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.