SoundPosition
SoundPosition (Function)
Format
soundposition ( player# )
returns float_expression
Description
Returns the current playback position, in seconds, of a sound instance. player# is the integer id returned by SoundPlayer.
Example
music = soundplayer("song.mp3")
soundplay music
pause 2.0
print "we are " + soundposition(music) + " seconds in"
See Also
Sound, SoundLength, SoundPlay, SoundPlayer, SoundSeek, SoundState
Availability
BASIC-256 2.0 and later. Documented from the BASIC-256 v2.1 continuation project.