Name

positionFrame()

Class

AudioSample

Description

Get frame index of current sound file playback position. 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.positionFrame()

Return

  • int