![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Receiver slot. More...
#include <roc_pipeline/receiver_slot.h>

Public Member Functions | |
| ReceiverSlot (const ReceiverSourceConfig &source_config, const ReceiverSlotConfig &slot_config, StateTracker &state_tracker, audio::Mixer &mixer, const rtp::EncodingMap &encoding_map, packet::PacketFactory &packet_factory, audio::FrameFactory &frame_factory, core::IArena &arena) | |
| Initialize. | |
| bool | is_valid () const |
| Check if the slot was succefully constructed. | |
| ReceiverEndpoint * | add_endpoint (address::Interface iface, address::Protocol proto, const address::SocketAddr &inbound_address, packet::IWriter *outbound_writer) |
| Add endpoint. | |
| core::nanoseconds_t | refresh (core::nanoseconds_t current_time) |
| Pull packets and refresh sessions according to current time. | |
| void | reclock (core::nanoseconds_t playback_time) |
| Adjust sessions clock to match consumer clock. | |
| size_t | num_sessions () const |
| Get number of alive sessions. | |
| void | get_metrics (ReceiverSlotMetrics &slot_metrics, ReceiverParticipantMetrics *party_metrics, size_t *party_count) const |
| Get metrics for slot and its participants. | |
Public Member Functions inherited from roc::core::RefCounted< ReceiverSlot, core::ArenaAllocation > | |
| RefCounted () | |
| Initialize. | |
| RefCounted (const core::ArenaAllocation &policy) | |
| Initialize. | |
| int | getref () const |
| Get reference counter. | |
| void | incref () const |
| Increment reference counter. | |
| void | decref () const |
| Decrement reference counter. | |
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. | |
Protected Member Functions inherited from roc::core::ArenaAllocation | |
| IArena & | arena () const |
| Get arena. | |
| ArenaAllocation (IArena &arena) | |
| Initialize. | |
| template<class T > | |
| void | destroy (T &object) |
| Destroy object and return memory to arena. | |
Receiver slot.
Contains:
Definition at line 37 of file receiver_slot.h.
| roc::pipeline::ReceiverSlot::ReceiverSlot | ( | const ReceiverSourceConfig & | source_config, |
| const ReceiverSlotConfig & | slot_config, | ||
| StateTracker & | state_tracker, | ||
| audio::Mixer & | mixer, | ||
| const rtp::EncodingMap & | encoding_map, | ||
| packet::PacketFactory & | packet_factory, | ||
| audio::FrameFactory & | frame_factory, | ||
| core::IArena & | arena | ||
| ) |
Initialize.
| ReceiverEndpoint * roc::pipeline::ReceiverSlot::add_endpoint | ( | address::Interface | iface, |
| address::Protocol | proto, | ||
| const address::SocketAddr & | inbound_address, | ||
| packet::IWriter * | outbound_writer | ||
| ) |
Add endpoint.
| void roc::pipeline::ReceiverSlot::get_metrics | ( | ReceiverSlotMetrics & | slot_metrics, |
| ReceiverParticipantMetrics * | party_metrics, | ||
| size_t * | party_count | ||
| ) | const |
Get metrics for slot and its participants.
| bool roc::pipeline::ReceiverSlot::is_valid | ( | ) | const |
Check if the slot was succefully constructed.
| size_t roc::pipeline::ReceiverSlot::num_sessions | ( | ) | const |
Get number of alive sessions.
| void roc::pipeline::ReceiverSlot::reclock | ( | core::nanoseconds_t | playback_time | ) |
Adjust sessions clock to match consumer clock.
playback_time specified absolute time when first sample of last frame retrieved from pipeline will be actually played on sink | core::nanoseconds_t roc::pipeline::ReceiverSlot::refresh | ( | core::nanoseconds_t | current_time | ) |
Pull packets and refresh sessions according to current time.