getDuration method

FutureOr<int> getDuration(
  1. int effectId
)

@detail api @brief Get the duration of the audio effect file. @param effectId Audio effect ID @return - >0: Success, the duration of the audio effect file in milliseconds. - < 0: failed. @note Call this API after start{@link #IAudioEffectPlayer#start}.

Implementation

FutureOr<int> getDuration(int effectId) async {
  return await nativeCall('getDuration', [effectId]);
}