1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/_SNDVOL.md
2022-12-24 21:14:48 -06:00

550 B

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

Syntax

_SNDVOL handle&, volume!

Description

  • 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 _SNDOPEN to use this function.

Example(s)


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

See Also