enableSpatialAudio abstract method
Enables or disables spatial audio.
After enabling spatial audio, you can call setRemoteUserSpatialAudioParams to set the spatial audio parameters for remote users. This method can be called before or after joining a channel. This method depends on the spatial audio dynamic library libagora_spatial_audio_extension.dll. Deleting this library will cause the feature to fail to enable properly.
enabledWhether to enable spatial audio: true : Enable spatial audio. false : Disable spatial audio.
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> enableSpatialAudio(bool enabled);