setAudioProfile method
- NERtcAudioProfile profile,
- NERtcAudioScenario scenario
设置音频场景与模式,必须在 init 前设置有效。
profile
设置采样率,码率,编码模式和声道数 AudioProfile
scenario
设置音频应用场景 AudioScenario
Implementation
Future<int> setAudioProfile(
NERtcAudioProfile profile, NERtcAudioScenario scenario) async {
assert(profile != null);
assert(scenario != null);
IntValue reply = await _api.setAudioProfile(SetAudioProfileRequest()
..profile = profile.index
..scenario = scenario.index);
return reply.value;
}