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 _SNDPLAYFILE statement is used to play a sound file without generating a handle, automatically closing it after playback finishes.

Syntax

_SNDPLAYFILE filename$[, ignored%][, volume!]

Description

Example(s)

Playing a sound file at half volume.


_SNDPLAYFILE "dog.wav", , .5 

See Also