![]() |
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Receiver session pipeline. More...
#include <receiver_session.h>
Public Member Functions | |
ReceiverSession (const ReceiverSessionConfig &session_config, const ReceiverCommonConfig &common_config, const packet::Address &src_address, const fec::CodecMap &codec_map, const rtp::FormatMap &format_map, packet::PacketPool &packet_pool, core::BufferPool< uint8_t > &byte_buffer_pool, core::BufferPool< audio::sample_t > &sample_buffer_pool, core::IAllocator &allocator) | |
Initialize. More... | |
bool | valid () const |
Check if the session pipeline was succefully constructed. More... | |
bool | handle (const packet::PacketPtr &packet) |
Try to route a packet to this session. More... | |
bool | update (packet::timestamp_t time) |
Update session. More... | |
audio::IReader & | reader () |
Get audio reader. More... | |
![]() | |
long | getref () const |
Get reference counter. More... | |
void | incref () const |
Increment reference counter. More... | |
void | decref () const |
Decrement reference counter. More... | |
![]() | |
ListNodeData * | list_node_data () const |
Get list node data. More... | |
Friends | |
class | core::RefCnt< ReceiverSession > |
Receiver session pipeline.
Definition at line 49 of file receiver_session.h.
roc::pipeline::ReceiverSession::ReceiverSession | ( | const ReceiverSessionConfig & | session_config, |
const ReceiverCommonConfig & | common_config, | ||
const packet::Address & | src_address, | ||
const fec::CodecMap & | codec_map, | ||
const rtp::FormatMap & | format_map, | ||
packet::PacketPool & | packet_pool, | ||
core::BufferPool< uint8_t > & | byte_buffer_pool, | ||
core::BufferPool< audio::sample_t > & | sample_buffer_pool, | ||
core::IAllocator & | allocator | ||
) |
Initialize.
bool roc::pipeline::ReceiverSession::handle | ( | const packet::PacketPtr & | packet | ) |
Try to route a packet to this session.
audio::IReader& roc::pipeline::ReceiverSession::reader | ( | ) |
Get audio reader.
bool roc::pipeline::ReceiverSession::update | ( | packet::timestamp_t | time | ) |
Update session.
bool roc::pipeline::ReceiverSession::valid | ( | ) | const |
Check if the session pipeline was succefully constructed.