ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
opus_codec_t Struct Reference

Opus codec context for encoding or decoding. More...

#include <include/ascii-chat/audio/opus.h>

Data Fields

OpusEncoder * encoder
 Encoder state (NULL if decoder)
 
OpusDecoder * decoder
 Decoder state (NULL if encoder)
 
int sample_rate
 Sample rate in Hz (e.g., 44100)
 
int bitrate
 Bitrate in bits per second (encoder only)
 
uint8_t * tmp_buffer
 Temporary buffer for internal use.
 

Detailed Description

Opus codec context for encoding or decoding.

Opaque structure that holds the state of an Opus encoder or decoder. Use opus_codec_create() or opus_codec_create_decoder() to initialize.

Note
This is an opaque type. Do not access fields directly.

Definition at line 95 of file opus.h.

Field Documentation

◆ bitrate

int opus_codec_t::bitrate

Bitrate in bits per second (encoder only)

Definition at line 99 of file opus.h.

Referenced by opus_codec_create_decoder(), opus_codec_create_encoder(), and opus_codec_set_bitrate().

◆ decoder

OpusDecoder* opus_codec_t::decoder

Decoder state (NULL if encoder)

Definition at line 97 of file opus.h.

Referenced by opus_codec_create_decoder(), opus_codec_create_encoder(), opus_codec_decode(), and opus_codec_destroy().

◆ encoder

◆ sample_rate

int opus_codec_t::sample_rate

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

Definition at line 98 of file opus.h.

Referenced by opus_codec_create_decoder(), and opus_codec_create_encoder().

◆ tmp_buffer

uint8_t* opus_codec_t::tmp_buffer

Temporary buffer for internal use.

Definition at line 100 of file opus.h.

Referenced by opus_codec_create_decoder(), opus_codec_create_encoder(), and opus_codec_destroy().


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