SNDSETPOS - QB64 Wiki

SNDSETPOS

From QB64 Wiki

Revision as of 15:37, 28 April 2011 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The _SNDSETPOS statement changes the current/starting playing position of a sound in seconds.


Syntax:

_SNDSETPOS (handle&, position!)


Description:

  • Changes the current/starting playing position of a sound in seconds(a 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(_SNDLOOP) sound is being played.


Code Examples:

_SNDSETPOS h&, 5.5



See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page