SNDLIMIT
From QB64 Wiki
The _SNDLIMIT statement stops playing a sound after it has been playing for a set number of seconds.
- _SNDLIMIT (handle&, limit!)
Description:
- Sets how long a sound will be played in seconds.
- Set limit to 0 to remove the limit.
- Cannot be set for playing a looping sound.
Code Examples:
_SNDLIMIT h&, 5.5
See also: