1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 14:41:21 +00:00
QB64-PE/internal/help/_SNDSETPOS.txt

31 lines
744 B
Plaintext
Raw Normal View History

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}}