Difference between revisions of "SNDPAUSED"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>SMcNeill
Line 9: Line 9:
{{PageDescription}}
{{PageDescription}}
*Returns -1 if the sound is paused. 0 if not paused.
*Returns -1 if the sound is paused. 0 if not paused.
*Sound files opened must have the "PAUSE" capability to use this function.
{{TextStart}}    QB64 supports the following sound file formats ('''Bold is a guaranteed capability'''):
            WAV = "'''VOL,SYNC,LEN''',PAUSE"      [http://www.rarewares.org/ogg-oggdropxpd.php Free WAV to OGG GUI converter]
            OGG = "VOL,SYNC,LEN,PAUSE"      [http://www.rarewares.org/ogg-oggenc.php Free WAV to OGG converter]
            AIF = "VOL,SYNC,LEN,PAUSE"
            RIF = "VOL,SYNC,LEN,PAUSE"
            VOC = "VOL,SYNC,LEN,PAUSE"
            MID = "'''VOL'''"
            MOD = "VOL,PAUSE"
            MP3 = "'''VOL''',PAUSE,SETPOS"        [http://www.freemp3wmaconverter.com/index.html Free WMA, MP3 and OGG converter]
        ''Note:'' {{Cb|_SNDBAL}} only affects MP3 volume. Sound will reside in main channel.
{{TextEnd}}





Revision as of 01:42, 15 August 2017

The _SNDPAUSED function checks if a sound is paused. Uses a handle parameter passed from _SNDOPEN.


Syntax

paused% = _SNDPAUSED(handle&)


Description

  • Returns -1 if the sound is paused. 0 if not paused.


Example:

PRINT _SNDPAUSED(h&)


See also



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