|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Converter sink pipeline. More...
#include <converter_sink.h>
Public Member Functions | |
| ConverterSink (const ConverterConfig &config, audio::IFrameWriter *output_writer, core::BufferFactory< audio::sample_t > &buffer_factory, core::IAllocator &allocator) | |
| Initialize. | |
| bool | valid () |
| Check if the pipeline was successfully constructed. | |
| virtual audio::SampleSpec | sample_spec () const |
| Get sample specification of the sink. | |
| virtual core::nanoseconds_t | latency () const |
| Get latency of the sink. | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. | |
| virtual audio::SampleSpec | sample_spec () const =0 |
| Get sample specification of the terminal. | |
| virtual core::nanoseconds_t | latency () const =0 |
| Get latency of the terminal. | |
| virtual bool | has_clock () const =0 |
| Check if the terminal has own clock. | |
| virtual void | write (Frame &frame)=0 |
| Write audio frame. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
Converter sink pipeline.
Definition at line 36 of file converter_sink.h.
| roc::pipeline::ConverterSink::ConverterSink | ( | const ConverterConfig & | config, |
| audio::IFrameWriter * | output_writer, | ||
| core::BufferFactory< audio::sample_t > & | buffer_factory, | ||
| core::IAllocator & | allocator | ||
| ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::ITerminal.
|
virtual |
Get latency of the sink.
Implements roc::sndio::ITerminal.
|
virtual |
Get sample specification of the sink.
Implements roc::sndio::ITerminal.
| bool roc::pipeline::ConverterSink::valid | ( | ) |
Check if the pipeline was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.