Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::pipeline::ReceiverSlot Class Reference

Receiver slot. More...

#include <receiver_slot.h>

Inheritance diagram for roc::pipeline::ReceiverSlot:
roc::core::RefCounted< ReceiverSlot, core::StandardAllocation > roc::core::ListNode roc::core::NonCopyable< T > roc::core::StandardAllocation roc::core::NonCopyable< ListNode >

Public Member Functions

 ReceiverSlot (const ReceiverConfig &receiver_config, ReceiverState &receiver_state, audio::Mixer &mixer, const rtp::FormatMap &format_map, packet::PacketFactory &packet_factory, core::BufferFactory< uint8_t > &byte_buffer_factory, core::BufferFactory< audio::sample_t > &sample_buffer_factory, core::IAllocator &allocator)
 Initialize.
 
ReceiverEndpointcreate_endpoint (address::Interface iface, address::Protocol proto)
 Create endpoint.
 
void delete_endpoint (address::Interface iface)
 Delete endpoint.
 
void advance (packet::timestamp_t timestamp)
 Pull packets from queues and advance session timestamp.
 
void reclock (packet::ntp_timestamp_t timestamp)
 Adjust session clock to match consumer clock.
 
size_t num_sessions () const
 Get number of alive sessions.
 
- Public Member Functions inherited from roc::core::RefCounted< ReceiverSlot, core::StandardAllocation >
 RefCounted ()
 Initialization with default allocation policy.
 
 RefCounted (const core::StandardAllocation &policy)
 Initialization with arbitrary allocation policy.
 
long 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
ListNodeDatalist_node_data () const
 Get list node data.
 

Additional Inherited Members

- Protected Member Functions inherited from roc::core::StandardAllocation
IAllocatorallocator () const
 Get allocator.
 
 StandardAllocation ()
 Initialize in invalid state. Such instance wont be usable.
 
 StandardAllocation (IAllocator &allocator)
 Initialize with given allocator. Such instance will use allocator to destroy objects.
 
template<class T >
void destroy (T &object)
 Destroy object and deallocate its memory.
 

Detailed Description

Receiver slot.

Contains:

  • one or more related receiver endpoints, one per each type
  • one session group associated with those endpoints

Definition at line 36 of file receiver_slot.h.

Constructor & Destructor Documentation

◆ ReceiverSlot()

roc::pipeline::ReceiverSlot::ReceiverSlot ( const ReceiverConfig receiver_config,
ReceiverState receiver_state,
audio::Mixer mixer,
const rtp::FormatMap format_map,
packet::PacketFactory packet_factory,
core::BufferFactory< uint8_t > &  byte_buffer_factory,
core::BufferFactory< audio::sample_t > &  sample_buffer_factory,
core::IAllocator allocator 
)

Initialize.

Member Function Documentation

◆ advance()

void roc::pipeline::ReceiverSlot::advance ( packet::timestamp_t  timestamp)

Pull packets from queues and advance session timestamp.

◆ create_endpoint()

ReceiverEndpoint * roc::pipeline::ReceiverSlot::create_endpoint ( address::Interface  iface,
address::Protocol  proto 
)

Create endpoint.

◆ delete_endpoint()

void roc::pipeline::ReceiverSlot::delete_endpoint ( address::Interface  iface)

Delete endpoint.

◆ num_sessions()

size_t roc::pipeline::ReceiverSlot::num_sessions ( ) const

Get number of alive sessions.

◆ reclock()

void roc::pipeline::ReceiverSlot::reclock ( packet::ntp_timestamp_t  timestamp)

Adjust session clock to match consumer clock.


The documentation for this class was generated from the following file: