Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::pipeline::Sender Class Reference

Sender pipeline. More...

#include <sender.h>

Inheritance diagram for roc::pipeline::Sender:
Collaboration diagram for roc::pipeline::Sender:

Public Member Functions

 Sender (const SenderConfig &config, const PortConfig &source_port, packet::IWriter &source_writer, const PortConfig &repair_port, packet::IWriter &repair_writer, 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 ()
 Check if the pipeline was successfully constructed. More...
virtual size_t sample_rate () const
 Get sink sample rate. More...
virtual bool has_clock () const
 Check if the sink has own clock. More...
virtual void write (audio::Frame &frame)
 Write audio frame. More...

Detailed Description

Sender pipeline.

Definition at line 39 of file sender.h.

Constructor & Destructor Documentation

roc::pipeline::Sender::Sender ( const SenderConfig config,
const PortConfig source_port,
packet::IWriter source_writer,
const PortConfig repair_port,
packet::IWriter repair_writer,
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 


Member Function Documentation

virtual bool roc::pipeline::Sender::has_clock ( ) const

Check if the sink has own clock.

Implements roc::sndio::ISink.

virtual size_t roc::pipeline::Sender::sample_rate ( ) const

Get sink sample rate.

Implements roc::sndio::ISink.

bool roc::pipeline::Sender::valid ( )

Check if the pipeline was successfully constructed.

virtual void roc::pipeline::Sender::write ( audio::Frame frame)

Write audio frame.

Implements roc::audio::IWriter.

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