AudioTrackConfig

Used to configure custom audio tracks.

public class AudioTrackConfig {
  public boolean enableLocalPlayback;
  public boolean enableAudioProcessing;
}

Properties

enableLocalPlayback
Whether to enable the local audio playback device:
  • true: (Default) Enables the local audio playback device.
  • false: Does not enable the local audio playback device.
enableAudioProcessing
Note: This parameter only takes effect for the AUDIO_TRACK_DIRECT type in custom audio capture.
Whether to enable the audio processing module:
  • true: Enables the audio processing module, applying echo cancellation (AEC), noise suppression (ANS), and automatic gain control (AGC).
  • false: (Default) Does not enable the audio processing module.