OPUS Decoder

Decode an audio data stream provided in OPUS format.

API Reference

Header File

Functions

audio_element_handle_t decoder_opus_init(opus_decoder_cfg_t *config)

Create an Audio Element handle to decode incoming OPUS data.

参数

config – The configuration

返回

The audio element handle

Structures

struct opus_decoder_cfg_t

OPUS Decoder configuration.

Public Members

int out_rb_size

Size of output ringbuffer

int task_stack

Task stack size

int task_core

CPU core number (0 or 1) where decoder task in running

int task_prio

Task priority (based on freeRTOS priority)

bool stack_in_ext

Try to allocate stack in external memory

Macros

OPUS_DECODER_TASK_STACK_SIZE
OPUS_DECODER_TASK_CORE
OPUS_DECODER_TASK_PRIO
OPUS_DECODER_RINGBUFFER_SIZE
DEFAULT_OPUS_DECODER_CONFIG()