Skip to content

ChannelSend

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

ChannelSend BlitzLLVM

ChannelSend:Void channel:Int32, bus:Int32, level:Float32
Parameter Mode Type Default Description
channel In Int32 required A channel handle from PlaySound, PlayMusic, EmitSound or MovieChannel. A channel that is over does nothing.
bus In Int32 required A bus from CreateAudioBus, or 0 for the master bus. Anything else is a runtime error.
level In Float32 required How much of the sound goes there: 1 as loud as the channel itself. 0 removes the send. Below 0 is a runtime error.

Description

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

Also sends a channel to another bus, at a level of its own, while it plays on its own bus as before. Many sounds can share one reverb this way. This is a BlitzLLVM extension.

Differences

  • The send takes the sound after the channel's effects, and pans it like the channel. A channel can send to 4 buses; a fifth is a runtime error. Changing the level glides over a few milliseconds. When the bus is freed, the send goes to the bus that it fed. GetChannelSend tells the level.

Examples

Include "<audio.bb>"
hall = CreateAudioBus()
verb = AddAudioEffect(hall, BB_EFFECT_REVERB)
AudioEffectParam verb, BB_EFFECTPARAM_MIX, 1 ; Only the reverb, the sound itself plays on its own bus.
ch = PlaySound(footstep)
ChannelSend ch, hall, 0.4

Related Commands

AddChannelEffect BlitzLLVM, ChannelBus BlitzLLVM, ChannelPan BlitzBasic, ChannelPitch BlitzBasic, ChannelPlaying BlitzBasic, ChannelVolume BlitzBasic, GetChannelBus BlitzLLVM, GetChannelSend BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally