Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.audio.AudioTrackConfig Class Reference

The configuration of custom audio tracks. More...

## Public Member Functions
String | toString ()

## Public Attributes
boolean | enableLocalPlayback
boolean | enableAudioProcessing

## Detailed Description

The configuration of custom audio tracks.

## Member Data Documentation

## ◆ enableLocalPlayback

boolean io.agora.rtc2.audio.AudioTrackConfig.enableLocalPlayback

Whether to enable the local audio-playback device:

- `true`: (Default) Enable the local audio-playback device.
- `false`: Do not enable the local audio-playback device.

## ◆ enableAudioProcessing

boolean io.agora.rtc2.audio.AudioTrackConfig.enableAudioProcessing

Whether to enable audio processing module:

- `true`: Enable the audio processing module to apply the Automatic Echo Cancellation (AEC), Automatic Noise Suppression (ANS), and Automatic Gain Control (AGC) effects.
- `false`: (Default) Do not enable the audio processing module.
  Note
    This parameter only takes effect on AUDIO_TRACK_DIRECT in custom audio capturing.