QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

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

Syntax

_SNDVOL handle&, volume!

Description

Example(s)


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

See Also