stopAll method

Future<int?> stopAll()

@detail api @brief 停止播放所有音效文件。 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 @note - 调用 start{@link #IAudioEffectPlayer#start} 方法开始播放音效文件后,可以调用本方法停止播放所有音效文件。 - 调用本方法停止播放所有音效文件后,该音效文件会被自动卸载。

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}');
  }
}