|
|
Microsoft OS/2 SDK 03-01-1988
/*
* Example of DosBeep usage
*
* This call generates a tone from the speaker with the specified
* frequency and duration. This program works in Family API mode.
*
* Compile as: cl -AL -Lp -G0 beepc.c
*
* Created by Microsoft Corp. 1986
*/
#define INCL_DOSPROCESS
#include <os2def.h>
#include <bsedos.h>
main()
{
UINT Frequency; /* in Hertz (range 0x25 to 0x7fff) */
UINT Duration; /* in milliseconds */
Frequency = 1000;
Duration = 500; /* 1/2 second */
DosBeep(Frequency, Duration); /* Produce tone */
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.