AUDIO_PROCESSING_CHANNELS

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 AUDIO_PROCESSING_STEREO (2) in AdvancedAudioOptions.
  2. Post-processing: call setAudioProfile [2/2] and set profile to AUDIO_PROFILE_MUSIC_STANDARD_STEREO (3) or AUDIO_PROFILE_MUSIC_HIGH_QUALITY_STEREO (5).
Attention:
  • The stereo setting only takes effect when the SDK uses the media volume.

  • On iOS, stereo audio requires high device performance. Stereo audio is only supported on the following devices using iOS 14.0 and later:
    • iPhone XS
    • iPhone XS Max
    • iPhone XR
    • iPhone 11
    • iPhone 11 Pro
    • iPhone 11 Pro Max
    • iPhone SE (2020)
    • iPad Pro 11" and 12.9" (3rd generation)
    • iPad Pro 11" and 12.9" (4th generation)

Enumerator

AUDIO_PROCESSING_MONO
1: (Default) Mono.
AUDIO_PROCESSING_STEREO
2: Stereo.