|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <converter.h>
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... | |
| virtual size_t | sample_rate () const =0 |
| Get sample rate of the sink. More... | |
| virtual bool | has_clock () const =0 |
| Check if the sink has own clock. More... | |
| virtual void | write (Frame &frame)=0 |
| Write audio frame. More... | |
Converter pipeline.
Definition at line 29 of file converter.h.
| roc::pipeline::Converter::Converter | ( | const ConverterConfig & | config, |
| audio::IWriter * | output_writer, | ||
| core::BufferPool< audio::sample_t > & | pool, | ||
| core::IAllocator & | allocator | ||
| ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::ISink.
|
virtual |
Get sink sample rate.
Implements roc::sndio::ISink.
| bool roc::pipeline::Converter::valid | ( | ) |
Check if the pipeline was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IWriter.