Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.audio.AdvancedAudioOptions.AudioProcessingChannelsEnum Enum Reference

The number of channels for audio preprocessing. More...

Public Member Functions

int getValue ()
 

Public Attributes

 AGORA_AUDIO_MONO_PROCESSING =(1)
 
 AGORA_AUDIO_STEREO_PROCESSING =(2)
 

Detailed Description

The number of channels for audio preprocessing.

In scenarios that require enhanced realism, such as concerts, local users might need to capture stereo audio and send stereo signals to remote users. For example, the singer, guitarist, and drummer are standing in different positions on the stage. The audio capture device captures their stereo audio and sends stereo signals to remote users. Remote users can hear the song, guitar, and drum from different directions as if they were at the auditorium. You can set the dual-channel processing to implement stereo audio in this class. Agora recommends the following settings:1. Preprocessing: call setAdvancedAudioOptions and set audioProcessingChannels to AGORA_AUDIO_STEREO_PROCESSING (2) in AdvancedAudioOptions.

  1. Post-processing: call setAudioProfile(int profile) and set profile to MUSIC_STANDARD_STEREO (3) or MUSIC_HIGH_QUALITY_STEREO (5).
Note
The stereo setting only takes effect when the SDK uses the media volume.

Member Data Documentation

◆ AGORA_AUDIO_MONO_PROCESSING

io.agora.rtc2.audio.AdvancedAudioOptions.AudioProcessingChannelsEnum.AGORA_AUDIO_MONO_PROCESSING =(1)

1: (Default) Mono.

◆ AGORA_AUDIO_STEREO_PROCESSING

io.agora.rtc2.audio.AdvancedAudioOptions.AudioProcessingChannelsEnum.AGORA_AUDIO_STEREO_PROCESSING =(2)

2: Stereo.