using_20the_20internal_20speaker
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
using_20the_20internal_20speaker [2018/03/31 13:19] – external edit 127.0.0.1 | using_20the_20internal_20speaker [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Using the internal speaker===== | =====Using the internal speaker===== | ||
- | //by Richard Russell, November 2007//\\ \\ **The code in this article requires Windows NT4, Windows 2000, Windows XP or Windows Vista.**\\ \\ Even if your PC has a sound card (or integrated audio) it is still possible to use the internal speaker (if fitted) to produce simple sounds. You can do that using the **Beep** API function, as follows:\\ \\ | + | //by Richard Russell, November 2007//\\ \\ **The code in this article requires Windows NT4, Windows 2000, Windows XP or Windows Vista.**\\ \\ Even if your PC has a sound card (or integrated audio) it is still possible to use the internal speaker (if fitted) to produce simple sounds. You can do that using the **Beep** API function, as follows: |
+ | |||
+ | <code bb4w> | ||
SYS " | SYS " | ||
- | Here **frequency%** is the approximate frequency of the sound in Hertz and **duration%** is the approximate duration in milliseconds; | + | </ |
+ | |||
+ | Here **frequency%** is the approximate frequency of the sound in Hertz and **duration%** is the approximate duration in milliseconds; | ||
+ | |||
+ | <code bb4w> | ||
SOUND 1, -15, pitch%, dur% | SOUND 1, -15, pitch%, dur% | ||
IF pitch% SYS " | IF pitch% SYS " | ||
+ | </ |
using_20the_20internal_20speaker.1522502390.txt.gz · Last modified: 2024/01/05 00:16 (external edit)