BEEP: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
m (Removed protection from "BEEP") |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The | The '''BEEP''' statement produces a beep sound through the sound card. | ||
Line 7: | Line 7: | ||
{{PageDescription}} | {{PageDescription}} | ||
* | * 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 [[Wikipedia:PC speaker|PC speaker]]. | ||
== | {{PageAvailability}} | ||
* | <!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | ||
* | <gallery widths="48px" heights="48px" mode="nolines"> | ||
File:Qb64.png|'''v0.610''' | |||
File:Qbpe.png|'''all''' | |||
File:Apix.png | |||
File:Win.png|'''yes''' | |||
File:Lnx.png|'''yes''' | |||
File:Osx.png|'''yes''' | |||
</gallery> | |||
<!-- additional availability notes go below here --> | |||
* 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. | |||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [[SOUND]], [[PLAY]] | * [[SOUND]], [[PLAY]] | ||
* [[_SNDPLAY]] | * [[_SNDPLAY]], [[_SNDRAW]] | ||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 19:26, 22 November 2024
The BEEP statement produces a beep sound through the sound card.
Syntax
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