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 Attributes

PayloadType payload_type
 Payload type. More...
 
unsigned flags
 Packet flags. More...
 
size_t sample_rate
 Sample rate. More...
 
packet::channel_mask_t channel_mask
 Channel mask. More...
 
size_t(* get_num_samples )(size_t payload_size)
 Get number of samples for given payload size. More...
 
audio::IFrameEncoder *(* new_encoder )(core::IAllocator &allocator)
 Create encoder. More...
 
audio::IFrameDecoder *(* new_decoder )(core::IAllocator &allocator)
 Create decoder. More...
 

Detailed Description

RTP payload format.

Definition at line 27 of file format.h.

Member Data Documentation

packet::channel_mask_t roc::rtp::Format::channel_mask

Channel mask.

Definition at line 38 of file format.h.

unsigned roc::rtp::Format::flags

Packet flags.

Definition at line 32 of file format.h.

size_t(* roc::rtp::Format::get_num_samples) (size_t payload_size)

Get number of samples for given payload size.

Definition at line 41 of file format.h.

audio::IFrameDecoder*(* roc::rtp::Format::new_decoder) (core::IAllocator &allocator)

Create decoder.

Definition at line 47 of file format.h.

audio::IFrameEncoder*(* roc::rtp::Format::new_encoder) (core::IAllocator &allocator)

Create encoder.

Definition at line 44 of file format.h.

PayloadType roc::rtp::Format::payload_type

Payload type.

Definition at line 29 of file format.h.

size_t roc::rtp::Format::sample_rate

Sample rate.

Definition at line 35 of file format.h.


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