Name

percent()

Class

AudioSample

Description

Get current sound file playback position in percent. Note that, if this audio sample was at some point played back in parallel (triggered by another call to play() before the original playback had finished), the position returned by this function can be of any of the concurrent playbacks, not necessarily the last one that was triggered.

Syntax

  • audiosample.percent()

Return

  • float