Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <receiver.h>
Public Types | |
typedef uint64_t | slot_index_t |
Slot index. More... | |
typedef void(* | slot_metrics_func_t) (const pipeline::ReceiverSlotMetrics &slot_metrics, void *slot_arg) |
Callback for slot metrics. More... | |
typedef void(* | party_metrics_func_t) (const pipeline::ReceiverParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
Callback for participant metrics. More... | |
Public Member Functions | |
Receiver (Context &context, const pipeline::ReceiverSourceConfig &pipeline_config) | |
Initialize. More... | |
~Receiver () | |
Deinitialize. More... | |
bool | is_valid () |
Check if successfully constructed. More... | |
ROC_ATTR_NODISCARD bool | configure (slot_index_t slot_index, address::Interface iface, const netio::UdpConfig &config) |
Set interface config. More... | |
ROC_ATTR_NODISCARD bool | bind (slot_index_t slot_index, address::Interface iface, address::EndpointUri &uri) |
Bind to local endpoint. More... | |
ROC_ATTR_NODISCARD bool | unlink (slot_index_t slot_index) |
Remove slot. More... | |
ROC_ATTR_NODISCARD bool | get_metrics (slot_index_t slot_index, slot_metrics_func_t slot_metrics_func, void *slot_metrics_arg, party_metrics_func_t party_metrics_func, size_t *party_metrics_size, void *party_metrics_arg) |
Get metrics. More... | |
bool | has_broken () |
Check if there are broken slots. More... | |
sndio::ISource & | source () |
Get receiver source. More... | |
Public Member Functions inherited from roc::node::Node | |
Node (Context &context) | |
Initialize. More... | |
virtual | ~Node () |
Deinitialize. More... | |
Context & | context () |
All nodes hold reference to context. More... | |
Receiver node.
Definition at line 34 of file receiver.h.
typedef void(* roc::node::Receiver::party_metrics_func_t) (const pipeline::ReceiverParticipantMetrics &party_metrics, size_t party_index, void *party_arg) |
Callback for participant metrics.
Definition at line 65 of file receiver.h.
typedef uint64_t roc::node::Receiver::slot_index_t |
Slot index.
Definition at line 37 of file receiver.h.
typedef void(* roc::node::Receiver::slot_metrics_func_t) (const pipeline::ReceiverSlotMetrics &slot_metrics, void *slot_arg) |
Callback for slot metrics.
Definition at line 61 of file receiver.h.
roc::node::Receiver::Receiver | ( | Context & | context, |
const pipeline::ReceiverSourceConfig & | pipeline_config | ||
) |
Initialize.
roc::node::Receiver::~Receiver | ( | ) |
Deinitialize.
ROC_ATTR_NODISCARD bool roc::node::Receiver::bind | ( | slot_index_t | slot_index, |
address::Interface | iface, | ||
address::EndpointUri & | uri | ||
) |
Bind to local endpoint.
ROC_ATTR_NODISCARD bool roc::node::Receiver::configure | ( | slot_index_t | slot_index, |
address::Interface | iface, | ||
const netio::UdpConfig & | config | ||
) |
Set interface config.
ROC_ATTR_NODISCARD bool roc::node::Receiver::get_metrics | ( | slot_index_t | slot_index, |
slot_metrics_func_t | slot_metrics_func, | ||
void * | slot_metrics_arg, | ||
party_metrics_func_t | party_metrics_func, | ||
size_t * | party_metrics_size, | ||
void * | party_metrics_arg | ||
) |
Get metrics.
bool roc::node::Receiver::has_broken | ( | ) |
Check if there are broken slots.
bool roc::node::Receiver::is_valid | ( | ) |
Check if successfully constructed.
sndio::ISource& roc::node::Receiver::source | ( | ) |
Get receiver source.
ROC_ATTR_NODISCARD bool roc::node::Receiver::unlink | ( | slot_index_t | slot_index | ) |
Remove slot.