| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | !! Beep !! |
On Wednesday, 96/02/07, Barrie Hiern wrote to All about "!! Beep !!"
as follows:
BH> Ok, I here my speaker beeping every now again to alert me to
BH> something so I know it can be done. HOW??????
Hi Barrie,
The DosBeep() API will allow you to sound the system tone device.
#define INCL_DOSPROCESS
/*******************************************/
/* DosBeep generates sound from the */
/* speaker. */
/*******************************************/
ULONG Frequency;
ULONG Duration;
APIRET rc; /* Return Code. */
rc = DosBeep ( Frequency, Duration)
Frequency (ULONG) - input
Cycles per second (Hertz) in the range of hex 25 to hex 7FFF.
Duration (ULONG) - input
The length of the sound in milliseconds.
rc (APIRET) - returns
DosBeep returns the following values:
0 NO_ERROR
395 ERROR_INVALID_FREQUENCY
Perhaps you should get a DevCon subscription so that you will have the
complete documentation in the OS/2 Developer's Toolkit.
Regards
Dave
* KWQ/2 1.2i * I'm not a real programmer, I just play one on TV.
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 440/4 141/209 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.