Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::rtp::Format Struct Reference

RTP payload format. More...

#include <format.h>

Collaboration diagram for roc::rtp::Format:

Public Member Functions

 Format ()
 Initialize. More...
 

Public Attributes

unsigned int payload_type
 Payload type. More...
 
audio::PcmFormat pcm_format
 Sample encoding and endian. More...
 
audio::SampleSpec sample_spec
 Sample rate and channel mask. More...
 
unsigned packet_flags
 Packet flags. More...
 
audio::IFrameEncoder *(* new_encoder )(core::IArena &arena, const audio::PcmFormat &pcm_format, const audio::SampleSpec &sample_spec)
 Create frame encoder. More...
 
audio::IFrameDecoder *(* new_decoder )(core::IArena &arena, const audio::PcmFormat &pcm_format, const audio::SampleSpec &sample_spec)
 Create frame decoder. More...
 

Detailed Description

RTP payload format.

Definition at line 26 of file format.h.

Constructor & Destructor Documentation

◆ Format()

roc::rtp::Format::Format ( )
inline

Initialize.

Definition at line 50 of file format.h.

Member Data Documentation

◆ new_decoder

audio::IFrameDecoder*(* roc::rtp::Format::new_decoder) (core::IArena &arena, const audio::PcmFormat &pcm_format, const audio::SampleSpec &sample_spec)

Create frame decoder.

Definition at line 45 of file format.h.

◆ new_encoder

audio::IFrameEncoder*(* roc::rtp::Format::new_encoder) (core::IArena &arena, const audio::PcmFormat &pcm_format, const audio::SampleSpec &sample_spec)

Create frame encoder.

Definition at line 40 of file format.h.

◆ packet_flags

unsigned roc::rtp::Format::packet_flags

Packet flags.

Definition at line 37 of file format.h.

◆ payload_type

unsigned int roc::rtp::Format::payload_type

Payload type.

Definition at line 28 of file format.h.

◆ pcm_format

audio::PcmFormat roc::rtp::Format::pcm_format

Sample encoding and endian.

Definition at line 31 of file format.h.

◆ sample_spec

audio::SampleSpec roc::rtp::Format::sample_spec

Sample rate and channel mask.

Definition at line 34 of file format.h.


The documentation for this struct was generated from the following file: