Skip to content

LoopSound

Claude edited this page Oct 27, 2026 · 9 revisions

Blitz3DBlitzPlusBlitzBasic

LoopSound

LoopSound sound:Int32
Parameter Type Default Description
sound Int32 required A handle from LoadSound.

Description

Marks a sound so that it plays in an endless loop whenever it is played from now on. It does not start the sound: call PlaySound for that. Channels that already play the sound are not changed. Stop a looping sound with StopChannel.

Differences

  • There is no command to switch looping off again.

Examples

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

Related Commands

FreeSound, Load3DSound, LoadSound, PlaySound, SoundPan, SoundPitch, SoundVolume

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally