SNDVOL

From QB64 Wiki

Jump to: navigation, search

The _SNDVOL statement sets the volume of a sound using a handle from the _SNDOPEN Function.


Syntax:

_SNDVOL (handle&, volume!)


Description:

  • Volume is a value from 0 (silence) to 1 (full volume).
  • An opened sound file must have the "VOL" capability to use this function.


Code Examples:

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


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools
Toolbox