Skip to content

SoundVolume

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

SoundVolume

SoundVolume:Void sound:Int32, volume:Float32
Parameter Mode Type Default Description
sound In Int32 required A handle from LoadSound.
volume In Float32 required 0 is silence and 1 is full volume.

Description

Sets the volume that channels of this sound start with. Channels that are already playing keep theirs: use ChannelVolume for those.

Differences

  • A debug build (-d) stops the program when the sound is 0 (a sound that failed to load) or does not exist, other builds ignore the command, see Debug handle checks.

Related Commands

ChannelVolume, FreeSound, Load3DSound, LoadSound, LoopSound, PlaySound, SoundPan, SoundPitch

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally