Annotation of os2sdk/demos/examples/beepc/beepc.c, revision 1.1.1.1

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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.