Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <depacketizer.h>
Public Member Functions | |
Depacketizer (packet::IReader &reader, IFrameDecoder &payload_decoder, const SampleSpec &sample_spec, bool beep) | |
Initialization. More... | |
bool | is_valid () const |
Was depacketizer constructed without errors? More... | |
bool | is_started () const |
Did depacketizer catch first packet? More... | |
virtual bool | read (Frame &frame) |
Read audio frame. More... | |
packet::stream_timestamp_t | next_timestamp () const |
Get next timestamp to be rendered. More... | |
Public Member Functions inherited from roc::core::ListNode< Tag > | |
ListData * | list_data () const |
Get pointer to internal data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from roc::core::ListNode< Tag > | |
static ListNode * | list_node (ListData *data) |
Get pointer to parent node from pointer to internal data. More... | |
Definition at line 30 of file depacketizer.h.
roc::audio::Depacketizer::Depacketizer | ( | packet::IReader & | reader, |
IFrameDecoder & | payload_decoder, | ||
const SampleSpec & | sample_spec, | ||
bool | beep | ||
) |
Initialization.
Parameters
reader
is used to read packetspayload_decoder
is used to extract samples from packetssample_spec
describes output framesbeep
enables weird beeps instead of silence on packet loss bool roc::audio::Depacketizer::is_started | ( | ) | const |
Did depacketizer catch first packet?
bool roc::audio::Depacketizer::is_valid | ( | ) | const |
Was depacketizer constructed without errors?
packet::stream_timestamp_t roc::audio::Depacketizer::next_timestamp | ( | ) | const |
Get next timestamp to be rendered.
|
virtual |
Read audio frame.
Implements roc::audio::IFrameReader.