From QB64 Wiki
Revision as of 16:41, 9 September 2017 by imported>SMcNeill (style guidelines)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The _SNDVOL statement sets the volume of a sound loaded in memory using a handle from the _SNDOPEN function.


_SNDVOL handle&, volume!


  • volume! is a value from 0 (silence) to 1 (full volume).
  • In versions prior to build 20170811/60, the sound identified by handle& must have been opened using the "VOL" capability to use this function.


h& = _SNDOPEN("bell.wav") _SNDVOL h&, 0.5 _SNDPLAY h&

See also

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