WAVデコーダーとエンコーダー

WAV Decoder and Encoder

オーディオデータストリームを/からWAV形式にデコードおよびエンコードします。

Decode and encode an audio data stream from / to WAV format.

アプリケーション例

Application Examples

このAPIの実装は、次の例で示されています:

Implementation of this API is demonstrated in the following examples:

APIリファレンス-デコーダー

API Reference - Decoder

ヘッダーファイル

Header File

関数

Functions
audio_element_handle_t wav_decoder_init(wav_decoder_cfg_t *config)

着信WAVデータをデコードするためのオーディオ要素ハンドルを作成します。

Create an Audio Element handle to decode incoming WAV data.

Return
オーディオエレメントハンドル
The audio element handle
Parameters
  • config: 構成
    config: The configuration

構造体

Structures
struct wav_decoder_cfg_t

簡単なWAVデコーダー構成

brief WAV Decoder configurations

Public Members

int out_rb_size

出力リングバッファのサイズ

Size of output ringbuffer
int task_stack

タスクスタックサイズ

Task stack size
int task_core

コアで実行されているタスク(0または1)

Task running in core (0 or 1)
int task_prio

タスクの優先度(freeRTOSの優先度に基づく)

Task priority (based on freeRTOS priority)

マクロ

Macros
WAV_DECODER_TASK_STACK
WAV_DECODER_TASK_CORE
WAV_DECODER_TASK_PRIO
WAV_DECODER_RINGBUFFER_SIZE
DEFAULT_WAV_DECODER_CONFIG()

APIリファレンス - エンコーダー

API Reference - Encoder

ヘッダーファイル

Header File

関数

Functions
audio_element_handle_t wav_encoder_init(wav_encoder_cfg_t *config)

オーディオ要素へのハンドルを作成して、WAV形式を使用して受信データをエンコードします。

Create a handle to an Audio Element to encode incoming data using WAV format.

Return
オーディオエレメントハンドル
The audio element handle
Parameters
  • config: 構成
    config: The configuration

構造体

Structures
struct wav_encoder_cfg_t

WAVエンコーダー構成。

WAV Encoder configurations.

Public Members

int out_rb_size

出力リングバッファのサイズ

Size of output ringbuffer
int task_stack

タスクスタックサイズ

Task stack size
int task_core

コアで実行されているタスク(0または1)

Task running in core (0 or 1)
int task_prio

タスクの優先度(freeRTOSの優先度に基づく)

Task priority (based on freeRTOS priority)

マクロ

Macros
WAV_ENCODER_TASK_STACK
WAV_ENCODER_TASK_CORE
WAV_ENCODER_TASK_PRIO
WAV_ENCODER_RINGBUFFER_SIZE
DEFAULT_WAV_ENCODER_CONFIG()