1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-08 12:35:13 +00:00
qb64/internal/help/_SNDLIMIT.txt

30 lines
752 B
Plaintext
Raw Normal View History

2016-03-18 11:36:04 +00:00
{{DISPLAYTITLE:_SNDLIMIT}}
The [[_SNDLIMIT]] statement stops playing a sound after it has been playing for a set number of seconds.
{{PageSyntax}}
2016-03-18 11:36:04 +00:00
::: '''_SNDLIMIT''' {{Parameter|handle&}}, {{Parameter|numberofseconds!}}
{{Parameters}}
* The ''handle&'' variable name is created using the [[_SNDOPEN]] function from a loaded sound file.
* The ''numberofseconds'' is a [[SINGLE]] value of seconds that the sound will play.
{{PageDescription}}
*Sets how long a sound will be played in seconds.
2016-03-18 11:36:04 +00:00
*Set the limit to 0 seconds to remove the limit.
*Cannot be set for playing a looping sound.
{{PageExamples}}
2016-03-18 11:36:04 +00:00
{{CodeStart}} '' ''
{{Cl|_SNDLIMIT}} h&, 5.5 '' ''
{{CodeEnd}}
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[_SNDOPEN]], [[_SNDLEN]]
{{PageNavigation}}