Skip to content

PauseChannel

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

Blitz3DBlitzPlusBlitzBasic

PauseChannel

PauseChannel:Void channel:Int32
Parameter Mode Type Default Description
channel In Int32 required A channel handle from PlaySound or PlayMusic.

Description

Pauses a channel. The sound stays where it is until ResumeChannel continues it. A paused channel is still reported as playing by ChannelPlaying.

Differences

  • A debug build (-d) stops the program when the channel was never given out. A channel that is over is fine everywhere, see Debug handle checks.

Examples

; MakeBeep writes beep.wav, see the LoadSound example for the code.
Local snd = LoadSound("beep.wav")
LoopSound snd
Local ch = PlaySound(snd)
Delay 500
PauseChannel ch
Delay 500
ResumeChannel ch
Delay 500
StopChannel ch

Related Commands

ChannelPan, ChannelPitch, ChannelPlaying, ChannelVolume, ResumeChannel, StopChannel

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally