Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <sender_encoder.h>
Public Member Functions | |
SenderEncoder (Context &context, const pipeline::SenderConfig &pipeline_config) | |
Initialize. More... | |
~SenderEncoder () | |
Deinitialize. More... | |
bool | is_valid () const |
Check if successfully constructed. More... | |
bool | activate (address::Interface iface, address::Protocol proto) |
Activate interface. More... | |
bool | get_metrics (pipeline::SenderSlotMetrics &slot_metrics, pipeline::SenderSessionMetrics &sess_metrics) |
Get metrics. More... | |
bool | is_complete () |
Check if everything is connected. More... | |
ROC_ATTR_NODISCARD status::StatusCode | read (address::Interface iface, packet::PacketPtr &packet) |
Read encoded packet. More... | |
sndio::ISink & | sink () |
Sink for writing frames for encoding. 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... | |
Sender encoder node.
Definition at line 33 of file sender_encoder.h.
roc::node::SenderEncoder::SenderEncoder | ( | Context & | context, |
const pipeline::SenderConfig & | pipeline_config | ||
) |
Initialize.
roc::node::SenderEncoder::~SenderEncoder | ( | ) |
Deinitialize.
bool roc::node::SenderEncoder::activate | ( | address::Interface | iface, |
address::Protocol | proto | ||
) |
Activate interface.
bool roc::node::SenderEncoder::get_metrics | ( | pipeline::SenderSlotMetrics & | slot_metrics, |
pipeline::SenderSessionMetrics & | sess_metrics | ||
) |
Get metrics.
bool roc::node::SenderEncoder::is_complete | ( | ) |
Check if everything is connected.
bool roc::node::SenderEncoder::is_valid | ( | ) | const |
Check if successfully constructed.
ROC_ATTR_NODISCARD status::StatusCode roc::node::SenderEncoder::read | ( | address::Interface | iface, |
packet::PacketPtr & | packet | ||
) |
Read encoded packet.
sndio::ISink& roc::node::SenderEncoder::sink | ( | ) |
Sink for writing frames for encoding.