Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
RTP encoding map. Thread-safe. Returned encodings are immutable and can be safely used from any thread. More...
#include <encoding_map.h>
Public Member Functions | |
EncodingMap (core::IArena &arena) | |
Initialize. More... | |
const Encoding * | find_by_pt (unsigned int pt) const |
Find encoding by payload type. More... | |
const Encoding * | find_by_spec (const audio::SampleSpec &spec) const |
Find encoding by sample specification. More... | |
ROC_ATTR_NODISCARD bool | add_encoding (Encoding enc) |
Add encoding to the map. More... | |
RTP encoding map. Thread-safe. Returned encodings are immutable and can be safely used from any thread.
Definition at line 33 of file encoding_map.h.
roc::rtp::EncodingMap::EncodingMap | ( | core::IArena & | arena | ) |
Initialize.
ROC_ATTR_NODISCARD bool roc::rtp::EncodingMap::add_encoding | ( | Encoding | enc | ) |
Add encoding to the map.
const Encoding* roc::rtp::EncodingMap::find_by_pt | ( | unsigned int | pt | ) | const |
Find encoding by payload type.
const Encoding* roc::rtp::EncodingMap::find_by_spec | ( | const audio::SampleSpec & | spec | ) | const |
Find encoding by sample specification.