setAudioProfile method Null safety
- NERtcAudioProfile profile,
- NERtcAudioScenario scenario
Set the audio scenario and mode. The method must be invoked before the init method.
profile sets the sample rate, bitrate, encoding mode, and the number of channels AudioProfile.
scenario the audio scenario AudioScenario
Implementation
Future<int> setAudioProfile(
NERtcAudioProfile profile, NERtcAudioScenario scenario) async {
IntValue reply = await _api.setAudioProfile(SetAudioProfileRequest()
..profile = profile.index
..scenario = scenario.index);
return reply.value ?? -1;
}