|
|
1.1 root 1: /*
2: * Example of DOSBEEP usage
3: *
4: * This call generates a tone from the speaker with the specified
5: * frequency and duration. This program works in Family API mode.
6: *
7: * Compile as: cl -AL -Lp -G0 beepc.c
8: *
9: * Copyright (C) Microsoft Corp. 1986
10: */
11:
12: #include <doscalls.h>
13:
14: main()
15: {
16: unsigned int Frequency; /* in Hertz (range 0x25 to 0x7fff) */
17: unsigned int Duration; /* in milliseconds */
18:
19: Frequency = 1000;
20: Duration = 500; /* 1/2 second */
21:
22: DOSBEEP(Frequency, Duration); /* Produce tone */
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.