BEEP

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search

The BEEP statement produces a beep sound through the sound card.


Syntax

BEEP


Description

  • The BEEP statement can be used anywhere in the code to alert the user that there is something to attend to or an error has occurred.
  • QB64 produces the actual "beep" sound through the PC's sound card, emulating QBasic's beeping through the PC speaker.


Availability

  • There used to be the ability to produce a beep by printing CHR$(7) to the screen. This functionality was no longer available since QB64 v0.960, when SDL audio was exchanged by OpenAL audio.
  • In QB64-PE v4.0.0 the beeping functionality using PRINT CHR$(7) has been restored.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link