Skip to content

CreateAudioBus

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

CreateAudioBus BlitzLLVM

CreateAudioBus:Int32 parent:Int32=0
Parameter Mode Type Default Description
parent In Int32 0 The bus that this one feeds, 0 (the default) for the master bus.

Returns: The handle of the bus. It works without a sound device too.

Description

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

Makes a bus: a group of channels with its own volume and pause state, that feeds another bus. Everything plays on the master bus (0) until it is put on another one, so a game can turn the world down for a pause menu and leave the music alone. See Audio buses. This is a BlitzLLVM extension.

Examples

world = CreateAudioBus()
music = CreateAudioBus()
MusicBus music
; The pause menu: the world fades out, the music plays on.
AudioBusVolume world, 0, 300

Related Commands

ChannelBus BlitzLLVM, CreateAudioScene BlitzLLVM, FreeAudioBus BlitzLLVM, GetChannelBus BlitzLLVM, MusicBus BlitzLLVM, PauseAudioBus BlitzLLVM, ResumeAudioBus BlitzLLVM, StopAudioBus BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally