getDuration

open fun getDuration(): Long

Audio duration in millisecond.

Return

Audio clip duration in milliseconds, or DURATION_UNKNOWN if duration is unknown.