unloadAll method

Future<int?> unloadAll()

@detail api @brief Unloads all audio effect files. @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details.

Implementation

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

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