Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Sender sink pipeline. More...
#include <sender_sink.h>
Public Member Functions | |
SenderSink (const SenderConfig &config, const rtp::FormatMap &format_map, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &byte_buffer_factory, core::BufferFactory< audio::sample_t > &sample_buffer_factory, core::IArena &arena) | |
Initialize. More... | |
bool | is_valid () const |
Check if the pipeline was successfully constructed. More... | |
SenderSlot * | create_slot () |
Create slot. More... | |
void | delete_slot (SenderSlot *slot) |
Delete slot. More... | |
core::nanoseconds_t | refresh (core::nanoseconds_t current_time) |
Refresh pipeline according to current time. More... | |
virtual sndio::DeviceType | type () const |
Get device type. More... | |
virtual sndio::DeviceState | state () const |
Get current receiver state. More... | |
virtual void | pause () |
Pause reading. More... | |
virtual bool | resume () |
Resume paused reading. More... | |
virtual bool | restart () |
Restart reading from the beginning. More... | |
virtual audio::SampleSpec | sample_spec () const |
Get sample specification of the sink. More... | |
virtual core::nanoseconds_t | latency () const |
Get latency of the sink. More... | |
virtual bool | has_latency () const |
Check if the sink supports latency reports. More... | |
virtual bool | has_clock () const |
Check if the sink has own clock. More... | |
virtual void | write (audio::Frame &frame) |
Write audio frame. More... | |
Public Member Functions inherited from roc::core::ListNode | |
ListNodeData * | list_node_data () const |
Get list node data. More... | |
Sender sink pipeline.
Contains:
Pipeline:
Definition at line 47 of file sender_sink.h.
roc::pipeline::SenderSink::SenderSink | ( | const SenderConfig & | config, |
const rtp::FormatMap & | format_map, | ||
packet::PacketFactory & | packet_factory, | ||
core::BufferFactory< uint8_t > & | byte_buffer_factory, | ||
core::BufferFactory< audio::sample_t > & | sample_buffer_factory, | ||
core::IArena & | arena | ||
) |
Initialize.
SenderSlot* roc::pipeline::SenderSink::create_slot | ( | ) |
Create slot.
void roc::pipeline::SenderSink::delete_slot | ( | SenderSlot * | slot | ) |
Delete slot.
|
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::SenderSink::is_valid | ( | ) | const |
Check if the pipeline was successfully constructed.
|
virtual |
Get latency of the sink.
Implements roc::sndio::IDevice.
|
virtual |
Pause reading.
Implements roc::sndio::IDevice.
core::nanoseconds_t roc::pipeline::SenderSink::refresh | ( | core::nanoseconds_t | current_time | ) |
Refresh pipeline according to current time.
|
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 current receiver state.
Implements roc::sndio::IDevice.
|
virtual |
Get device type.
Implements roc::sndio::IDevice.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.