AudioTrackConfig
The configuration of custom audio tracks.
public class AudioTrackConfig {
public boolean enableLocalPlayback;
public boolean enableAudioProcessing;
public AudioTrackConfig() {
this.enableLocalPlayback = true;
this.enableAudioProcessing = false;
}
@Override
public String toString() {
return "AudioTrackConfig{"
+ "enableLocalPlayback=" + enableLocalPlayback + "enableAudioProcessing"
+ enableAudioProcessing + '}';
}
}
Attributes
- 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
- Whether to enable audio processing module:
trueEnable 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.
Attention: This parameter only takes effect on AUDIO_TRACK_DIRECT in custom audio capturing.