Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
_codec_context_t Struct Reference

Context structure for audio codec configuration and state. More...

#include <codecs.h>

Public Attributes

unsigned sample_rate
unsigned channels
wmem_map_tfmtp_map
void * priv

Detailed Description

Context structure for audio codec configuration and state.

Encapsulates codec-specific parameters and decoder state used during media processing. This structure is typically initialized by the codec registration or setup routines and passed to encoding/decoding functions.

Member Data Documentation

◆ channels

unsigned _codec_context_t::channels

Number of audio channels (e.g., 1 for mono, 2 for stereo).

◆ fmtp_map

wmem_map_t* _codec_context_t::fmtp_map

Optional format parameters (FMTP) as a key-value map, or NULL if not provided.

◆ priv

void* _codec_context_t::priv

Pointer to codec-specific private state allocated and managed by the codec implementation.

◆ sample_rate

unsigned _codec_context_t::sample_rate

Sample rate in Hz (e.g., 8000, 44100).


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