![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Transcoder sink pipeline. More...
#include <roc_pipeline/transcoder_sink.h>

Public Member Functions | |
| TranscoderSink (const TranscoderConfig &config, audio::IFrameWriter *output_writer, core::IPool &buffer_pool, core::IArena &arena) | |
| Initialize. | |
| bool | is_valid () |
| Check if the pipeline was successfully constructed. | |
| virtual sndio::ISink * | to_sink () |
| Cast IDevice to ISink. | |
| virtual sndio::ISource * | to_source () |
| Cast IDevice to ISink. | |
| virtual sndio::DeviceType | type () const |
| Get device type. | |
| virtual sndio::DeviceState | state () const |
| Get device state. | |
| virtual void | pause () |
| Pause reading. | |
| virtual bool | resume () |
| Resume paused reading. | |
| virtual bool | restart () |
| Restart reading from the beginning. | |
| 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_latency () const |
| Check if the sink supports latency reports. | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
| ListData * | list_data () const |
| Get pointer to internal data. | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
| static ListNode * | list_node (ListData *data) |
| Get pointer to parent node from pointer to internal data. | |
Transcoder sink pipeline.
Definition at line 34 of file transcoder_sink.h.
| roc::pipeline::TranscoderSink::TranscoderSink | ( | const TranscoderConfig & | config, |
| audio::IFrameWriter * | output_writer, | ||
| core::IPool & | buffer_pool, | ||
| core::IArena & | arena | ||
| ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::IDevice.
|
virtual |
Check if the sink supports latency reports.
Implements roc::sndio::IDevice.
| bool roc::pipeline::TranscoderSink::is_valid | ( | ) |
Check if the pipeline was successfully constructed.
|
virtual |
Get latency of the sink.
Implements roc::sndio::IDevice.
|
virtual |
Pause reading.
Implements roc::sndio::IDevice.
|
virtual |
Restart reading from the beginning.
Implements roc::sndio::IDevice.
|
virtual |
Resume paused reading.
Implements roc::sndio::IDevice.
|
virtual |
Get sample specification of the sink.
Implements roc::sndio::IDevice.
|
virtual |
Get device state.
Implements roc::sndio::IDevice.
|
virtual |
Cast IDevice to ISink.
Implements roc::sndio::IDevice.
|
virtual |
Cast IDevice to ISink.
Implements roc::sndio::IDevice.
|
virtual |
Get device type.
Implements roc::sndio::IDevice.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.