enableSoundPositionIndication abstract method

Future<void> enableSoundPositionIndication(
  1. bool enabled
)

Enables/disables stereo sound for remote users.

To enable spatial audio positioning using setRemoteVoicePosition, make sure to call this method before joining the channel to enable stereo sound for remote users.

  • enabled Whether to enable stereo sound for remote users: true : Enable stereo sound. false : Disable stereo sound.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> enableSoundPositionIndication(bool enabled);