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

Converter pipeline. More...

#include <converter.h>

Inheritance diagram for roc::pipeline::Converter:
Collaboration diagram for roc::pipeline::Converter:

Public Member Functions

 Converter (const ConverterConfig &config, audio::IWriter *output_writer, core::BufferPool< audio::sample_t > &pool, core::IAllocator &allocator)
 Initialize. More...
 
bool valid ()
 Check if the pipeline was successfully constructed. More...
 
virtual size_t sample_rate () const
 Get sink sample rate. More...
 
virtual bool has_clock () const
 Check if the sink has own clock. More...
 
virtual void write (audio::Frame &frame)
 Write audio frame. More...
 

Detailed Description

Converter pipeline.

Definition at line 29 of file converter.h.

Constructor & Destructor Documentation

roc::pipeline::Converter::Converter ( const ConverterConfig config,
audio::IWriter output_writer,
core::BufferPool< audio::sample_t > &  pool,
core::IAllocator allocator 
)

Initialize.

Member Function Documentation

virtual bool roc::pipeline::Converter::has_clock ( ) const
virtual

Check if the sink has own clock.

Implements roc::sndio::ISink.

virtual size_t roc::pipeline::Converter::sample_rate ( ) const
virtual

Get sink sample rate.

Implements roc::sndio::ISink.

bool roc::pipeline::Converter::valid ( )

Check if the pipeline was successfully constructed.

virtual void roc::pipeline::Converter::write ( audio::Frame frame)
virtual

Write audio frame.

Implements roc::audio::IWriter.


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