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