Skip to content

AudioEffectParam

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

AudioEffectParam BlitzLLVM

AudioEffectParam:Void effect:Int32, param:Int32, value:Float32, fade_ms:Int32=0
Parameter Mode Type Default Description
effect In Int32 required An effect from AddAudioEffect. Anything else is a runtime error.
param In Int32 required BB_EFFECTPARAM_MIX to BB_EFFECTPARAM_BITS (1 to 18) from the shipped include file audio.bb. A parameter the effect does not have is a runtime error, and so is 0, which a BB_ name is when audio.bb is not included.
value In Float32 required The new value, in the unit of the parameter. A value outside the range of the parameter is a runtime error.
fade_ms In Int32 0 How many milliseconds it takes to get to the new value. 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 a parameter of an effect, at once or over a fade time. See Audio effects for the parameters of each type. This is a BlitzLLVM extension.

Differences

  • A change without a fade still glides over about 5 milliseconds, so it does not click. Frequencies glide evenly in octaves.

Examples

Include "<audio.bb>"
; Behind a wall: close the low-pass over 150 milliseconds.
AudioEffectParam muffle, BB_EFFECTPARAM_FREQUENCY, 800, 150

Related Commands

AudioBusParent BlitzLLVM, AudioBusVolume BlitzLLVM, AudioEffectBypass BlitzLLVM, AudioSceneBypass BlitzLLVM, AudioSceneListener BlitzLLVM, AudioSceneParam BlitzLLVM, AudioSceneVolume BlitzLLVM, GetAudioEffectParam BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally