Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Sender slot. More...
#include <sender_slot.h>
Public Member Functions | |
SenderSlot (const SenderConfig &config, const rtp::FormatMap &format_map, audio::Fanout &fanout, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &byte_buffer_factory, core::BufferFactory< audio::sample_t > &sample_buffer_factory, core::IArena &arena) | |
Initialize. More... | |
SenderEndpoint * | add_endpoint (address::Interface iface, address::Protocol proto, const address::SocketAddr &dest_address, packet::IWriter &dest_writer) |
Add endpoint. More... | |
audio::IFrameWriter * | writer () |
Get audio writer. More... | |
bool | is_complete () const |
Check if slot configuration is complete. More... | |
core::nanoseconds_t | refresh (core::nanoseconds_t current_time) |
Refresh pipeline according to current time. More... | |
void | get_metrics (SenderSlotMetrics &slot_metrics, SenderSessionMetrics *sess_metrics) const |
Get metrics for slot and its session. More... | |
Public Member Functions inherited from roc::core::RefCounted< SenderSlot, core::ArenaAllocation > | |
RefCounted () | |
Initialize. More... | |
RefCounted (const core::ArenaAllocation &policy) | |
Initialize. More... | |
int | getref () const |
Get reference counter. More... | |
void | incref () const |
Increment reference counter. More... | |
void | decref () const |
Decrement reference counter. More... | |
Public Member Functions inherited from roc::core::ListNode | |
ListNodeData * | list_node_data () const |
Get list node data. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
IArena & | arena () const |
Get arena. More... | |
ArenaAllocation (IArena &arena) | |
Initialize. More... | |
template<class T > | |
void | destroy (T &object) |
Destroy object and return memory to arena. More... | |
Sender slot.
Contains:
Definition at line 37 of file sender_slot.h.
roc::pipeline::SenderSlot::SenderSlot | ( | const SenderConfig & | config, |
const rtp::FormatMap & | format_map, | ||
audio::Fanout & | fanout, | ||
packet::PacketFactory & | packet_factory, | ||
core::BufferFactory< uint8_t > & | byte_buffer_factory, | ||
core::BufferFactory< audio::sample_t > & | sample_buffer_factory, | ||
core::IArena & | arena | ||
) |
Initialize.
SenderEndpoint* roc::pipeline::SenderSlot::add_endpoint | ( | address::Interface | iface, |
address::Protocol | proto, | ||
const address::SocketAddr & | dest_address, | ||
packet::IWriter & | dest_writer | ||
) |
Add endpoint.
void roc::pipeline::SenderSlot::get_metrics | ( | SenderSlotMetrics & | slot_metrics, |
SenderSessionMetrics * | sess_metrics | ||
) | const |
Get metrics for slot and its session.
bool roc::pipeline::SenderSlot::is_complete | ( | ) | const |
Check if slot configuration is complete.
core::nanoseconds_t roc::pipeline::SenderSlot::refresh | ( | core::nanoseconds_t | current_time | ) |
Refresh pipeline according to current time.
audio::IFrameWriter* roc::pipeline::SenderSlot::writer | ( | ) |
Get audio writer.