Skip to main content

SoundSystem

SoundSystem (Statement)

Format

soundsystem code

Description

Sends a command that affects all sounds and players at once. code is an integer:

CodeAction
0Stop all playing sounds
1Play / resume all sounds paused with code 2
2Pause all playing sounds
3Stop and delete all sounds and players
4Play / resume all paused sounds

Code 3 is the most thorough — it releases every sound instance and player, freeing their memory.

Example

soundsystem 2 # pause everything
pause 1.0
soundsystem 1 # resume everything
# ... on shutdown ...
soundsystem 3 # stop and free all sounds

See Also

Sound, SoundPause, SoundPlay, SoundPlayerOff, SoundStop

Availability

BASIC-256 2.0 and later. Documented from the BASIC-256 v2.1 continuation project.