mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-20 09:04:44 +00:00
31 lines
No EOL
744 B
Text
31 lines
No EOL
744 B
Text
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}} |