pauseAll method

Future<int?> pauseAll()

@detail api @brief Pauses the Playback of all audio effect files. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details. @note - After calling the start{@link #IAudioEffectPlayer#start} API to start playing audio effect files, you can pause playing all audio effect files by calling this API. - After calling this API to pause the playback of all audio effect files, you can call the resumeAll{@link #IAudioEffectPlayer#resumeAll} API to resume all playback.

Implementation

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

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