stopAll method

Future<int?> stopAll()

@detail api @brief Stops playback of all audio effect files. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - After calling start{@link #IAudioEffectPlayer#start} to start playing audio effect files, you can call this API to stop playing all audio effect files. - After calling this API to stop playing all audio effect files, the audio effect files will be unloaded automatically.

Implementation

Future<int?> stopAll() async {
  $a() => ($instance as $p_a.IAudioEffectPlayer).stopAll();
  $i() => ($instance as $p_i.ByteRTCAudioEffectPlayer).stopAll();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}