Difference between revisions of "SNDGETPOS"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 1: Line 1:
The {{KW|_SNDGETPOS}} function returns the current playing position in seconds using a handle from {{KW|_SNDOPEN}}.
{{DISPLAYTITLE:_SNDGETPOS}}
The [[_SNDGETPOS]] function returns the current playing position in seconds using a handle from [[_SNDOPEN]].




{{PageSyntax}}
{{PageSyntax}}
:{{Parameter|position}} = {{KW|_SNDGETPOS}}({{Parameter|handle&}})
:{{Parameter|position}} = '''_SNDGETPOS('''{{Parameter|handle&}}''')'''





Revision as of 18:58, 21 July 2013

The _SNDGETPOS function returns the current playing position in seconds using a handle from _SNDOPEN.


Syntax

position = _SNDGETPOS(handle&)


Description

  • Returns the currently playing position in seconds from sound files with the SETPOS capability.
  • If a sound isn't playing, it returns 0.
  • If a sound is paused, it returns the paused position.
  • For a looping sound, the value returned continues to increment and does not reset to 0 when the sound loops.


Examples

PRINT _SNDGETPOS(h&)


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page