mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 12:04:06 +00:00
aeb9c0668b
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
33 lines
968 B
Text
33 lines
968 B
Text
{{QBDLDATE:05-20-2022}}
|
|
{{QBDLTIME:23:10:56}}
|
|
{{DISPLAYTITLE:_SNDLIMIT}}
|
|
The [[_SNDLIMIT]] statement stops playing a sound after it has been playing for a set number of seconds.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: [[_SNDLIMIT]] {{Parameter|handle&}}, {{Parameter|numberOfSeconds!}}
|
|
|
|
|
|
{{Parameters}}
|
|
* The {{Parameter|handle&}} variable name is created using the [[_SNDOPEN]] function from a loaded sound file.
|
|
* {{Parameter|numberOfSeconds!}} is a [[SINGLE]] value of seconds that the sound will play.
|
|
|
|
|
|
{{PageDescription}}
|
|
*Sets how long a sound will be played in seconds. If the limit is set after the sound is started, the timer starts counting down from when the limit is applied, not from the start of playing.
|
|
*Set {{Parameter|numberOfSeconds!}} to 0 seconds to remove the limit.
|
|
*Pausing or stopping the sound will also remove the limit.
|
|
|
|
|
|
{{PageExamples}}
|
|
{{CodeStart}}
|
|
{{Cl|_SNDLIMIT}} h&, 5.5
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[_SNDOPEN]], [[_SNDLEN]]
|
|
|
|
|
|
{{PageNavigation}}
|
|
|