1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 19:35:13 +00:00
qb64/internal/help/_SNDSETPOS.txt
2013-01-24 23:57:23 +11:00

31 lines
744 B
Plaintext

The {{KW|_SNDSETPOS}} statement changes the current/starting playing position of a sound in seconds.
{{PageSyntax}}
:{{KW|_SNDSETPOS}} ({{Parameter|handle&}}, {{Parameter|position!}})
{{PageDescription}}
*Changes the current/starting playing position of a sound in seconds(a {{KW|SINGLE}} value).
*If the seconds position is past the length of the sound the sound will stop playing.
*Opened files must have the "SETPOS" capability to use this statement.
*Function cannot be called while a looping({{KW|_SNDLOOP}}) sound is being played.
{{PageExamples}}
{{CodeStart}}
{{Cl|_SNDSETPOS}} h&, 5.5
{{CodeEnd}}
{{PageSeeAlso}}
*{{KW|_SNDGETPOS}}, {{KW|_SNDLEN}}, {{KW|_SNDOPEN}}, {{KW|_SNDLIMIT}}
{{PageNavigation}}