Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTP filter. More...
#include <filter.h>
Public Member Functions | |
Filter (packet::IReader &reader, audio::IFrameDecoder &decoder, const FilterConfig &config, const audio::SampleSpec &sample_spec) | |
Initialize. More... | |
virtual ROC_ATTR_NODISCARD status::StatusCode | read (packet::PacketPtr &pp) |
Read next packet. More... | |
RTP filter.
Performs initial validation and initialization of incoming sequence of RTP packets.
roc::rtp::Filter::Filter | ( | packet::IReader & | reader, |
audio::IFrameDecoder & | decoder, | ||
const FilterConfig & | config, | ||
const audio::SampleSpec & | sample_spec | ||
) |
Initialize.
Parameters
reader
is used to read input packetsdecoder
is used to query parameters of packetsconfig
defines filtering parameterssample_spec
defines stream sample spec
|
virtual |
Read next packet.
Implements roc::packet::IReader.