setAudioProfile abstract method
Future<void>
setAudioProfile({
- required AudioProfileType profile,
- AudioScenarioType scenario = AudioScenarioType.audioScenarioDefault,
Sets the audio profile and audio scenario.
profile
The audio profile, including the sampling rate, bitrate, encoding mode, and the number of channels. See AudioProfileType.scenario
The audio scenarios. Under different audio scenarios, the device uses different volume types. See AudioScenarioType.
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.
Implementation
Future<void> setAudioProfile(
{required AudioProfileType profile,
AudioScenarioType scenario = AudioScenarioType.audioScenarioDefault});