Table of Contents

ugBASIC User Manual

BOOM

SYNTAX

   BOOM [duration [MS]] [ON channel]

PURPOSE

This command makes the computer emit an explosion-like sound. It is possible to indicate the duration of sound effect and on which voices the system should emit the sound. If omitted, it will be issued on all.

Note that the execution of the effect can be synchronous or asynchronous, depending on the target. Synchronous execution means that the program will wait for the effect to complete before returning; on the contrary, asynchronous execution requires the program to continue executing subsequent instructions.

The behavior can be modified by the DEFINE AUDIO SYNC and DEFINE AUDIO ASYNC pragmas, which however may not be available for the target in question.

EXAMPLE

  BOOM 1000 MS
  BOOM 100 MS ON %001

ABBREVIATION

 Boo

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY