stop method
@detail api @brief Stops the playback of audio effect files. @param effectId Audio effect ID @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - After calling the start{@link #IAudioEffectPlayer#start} API to start playing the audio effect file, you can call this API to stop playing the audio effect file. - After calling this API to stop playing an audio effect file, the audio effect file will be unloaded automatically.
Implementation
Future<int?> stop(int effectId) async {
$a() => ($instance as $p_a.IAudioEffectPlayer).stop(effectId);
$i() => ($instance as $p_i.ByteRTCAudioEffectPlayer).stop(effectId);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}