Skip to content

AudioBusVolume

Narta Xaymar Dirks edited this page Nov 27, 2026 · 1 revision

AudioBusVolume BlitzLLVM

AudioBusVolume:Void bus:Int32, volume:Float32, fade_ms:Int32=0
Parameter Mode Type Default Description
bus In Int32 required A bus from CreateAudioBus, or 0 for the master bus. Anything else is a runtime error.
volume In Float32 required 1 is the full volume, 0 silence. Above 1 makes the bus louder. Below 0 is a runtime error.
fade_ms In Int32 0 How many milliseconds it takes to get to the new volume. 0 (the default) changes it at once. Below 0 is a runtime error.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Sets the volume of a bus, at once or over a fade time. A channel is as loud as its own volume times the volume of its bus and of every bus that bus feeds, master included. This is a BlitzLLVM extension.

Differences

  • The volume glides over every block of sound, so a fade has no steps, also when the program does not call Flip or Delay. GetAudioBusVolume tells the volume.

Examples

; Everything fades out over two seconds.
AudioBusVolume 0, 0, 2000

Related Commands

AudioBusParent BlitzLLVM, AudioSceneListener BlitzLLVM, AudioSceneVolume BlitzLLVM, ChannelVolume BlitzBasic, CreateAudioBus BlitzLLVM, FreeAudioBus BlitzLLVM, GetAudioBusVolume BlitzLLVM, SoundVolume BlitzBasic

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally