enableRangeAudio abstract method
Enables/disables the range audio function.
Range audio means that within a certain range in a same RTC room, the audio volume of the remote user received by the local user will be amplified/attenuated as the remote user moves closer/away. The audio coming from out of the range cannot be heard. See RTCRangeAudio.updateReceiveRange to set audio receiving range.
You can call this API anytime before or after entering a room. To ensure a smooth switch to the range audio mode after entering the room, you need to call RTCRangeAudio.updatePosition before this API to set your own position coordinates, and then enable the range audio function.
Implementation
Future<void> enableRangeAudio(bool enable);