getTotalDuration abstract method

Future<int> getTotalDuration(
  1. int audioEffectID
)

Get the total duration of the specified audio effect resource.

Available since: 1.16.0 Description: Get the total duration of the specified audio effect resource. Unit is millisecond. When to call: You should invoke this function after the audio effect resource already loaded, otherwise the return value is 0. Restrictions: It can be called after createAudioEffectPlayer. Related APIs: start, loadResource.

  • audioEffectID ID for the audio effect.
  • Returns Unit is millisecond.

Implementation

Future<int> getTotalDuration(int audioEffectID);