IoT SDK for Linux v1.8.0
Data Fields
audio_codec_option_t Struct Reference

#include <agora_rtc_api.h>

Data Fields

audio_codec_type_e audio_codec_type
 
int pcm_sample_rate
 
int pcm_channel_num
 

Detailed Description

Configuration of the SDK built-in audio encoder/decoder.

Field Documentation

◆ audio_codec_type

audio_codec_type_e audio_codec_type

Audio codec type.

◆ pcm_channel_num

int pcm_channel_num

Number of PCM channels of the SDK built-in audio encoder/decoder.

  • 1: Mono-channel
  • 2: Dual-channel

◆ pcm_sample_rate

int pcm_sample_rate

PCM sampling rate (Hz) of the SDK built-in audio encoder/decoder. You can set the parameter to the following values:

  • 8000: 8 kHz.
  • 16000: 16 kHz.
  • 48000: 48 kHz.

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