![]() |
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::IAllocator &allocator) | |
Initialize. | |
bool | valid () const |
Check if the pipeline was successfully constructed. | |
SenderSlot * | create_slot () |
Create slot. | |
core::nanoseconds_t | get_update_deadline () |
Get deadline when the pipeline should be updated. | |
void | update () |
Update pipeline. | |
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. | |
![]() | |
ListNodeData * | list_node_data () const |
Get list node data. | |
Sender sink pipeline.
Contains:
Pipeline:
Definition at line 48 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::IAllocator & | allocator | ||
) |
Initialize.
SenderSlot * roc::pipeline::SenderSink::create_slot | ( | ) |
Create slot.
core::nanoseconds_t roc::pipeline::SenderSink::get_update_deadline | ( | ) |
Get deadline when the pipeline should be updated.
|
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.
void roc::pipeline::SenderSink::update | ( | ) |
Update pipeline.
bool roc::pipeline::SenderSink::valid | ( | ) | const |
Check if the pipeline was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.