_SNDLIMIT - QB64 Wiki

_SNDLIMIT

From QB64 Wiki

Jump to: navigation, search

The _SNDLIMIT statement stops playing a sound after it has been playing for a set number of seconds.


Syntax:

_SNDLIMIT handle&, 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.


Description:

  • Sets how long a sound will be played in seconds.
  • Set the limit to 0 seconds to remove the limit.
  • Cannot be set for playing a looping sound.


Code Examples:

_SNDLIMIT h&, 5.5


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version