|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <sender.h>
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... | |
| virtual size_t | sample_rate () const =0 |
| Get sample rate of the sink. More... | |
| virtual bool | has_clock () const =0 |
| Check if the sink has own clock. More... | |
| virtual void | write (Frame &frame)=0 |
| Write audio frame. More... | |
| 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 | ||
| ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::ISink.
|
virtual |
Get sink sample rate.
Implements roc::sndio::ISink.
| bool roc::pipeline::Sender::valid | ( | ) |
Check if the pipeline was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IWriter.