home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
- From: dic5340@hertz.njit.edu (David Charlap)
- Newsgroups: comp.os.os2.misc
- Subject: Re: MMPM/2 and PC speaker
- Message-ID: <1993Jan21.201216.21162@njitgw.njit.edu>
- Date: 21 Jan 93 20:12:16 GMT
- References: <1993Jan17.005410.1297@yvax.byu.edu>
- Sender: news@njit.edu
- Organization: New Jersey Institute of Technology, Newark, N.J.
- Lines: 27
- Nntp-Posting-Host: hertz.njit.edu
-
- In article <1993Jan17.005410.1297@yvax.byu.edu> hayesb@yvax.byu.edu writes:
- >I just installed the 2.1b and don't have any drivers for the PC speaker. I
- >don't have any type of sound card and was wondering if sounds can be played
- >through the PC speaker in both MMPM/2 and a WIN-OS2 session. Any help would be
- >appreciated.
-
- There exists the DosBeep() function for simple beeping type sounds. You
- can get a useable range of sounds with that (ask any Turbo Pascal 3.x
- programmer!). As for digitized sound, the timings involved are too
- critical for any multitasker to handle properly.
-
- Just in case you don't have documentation, this call is simple:
-
- DosBeep(note, duration);
-
- Where note is the frequency in Hz, and duration is the length of the
- note in milliseconds. So
-
- DosBeep( 500,100);
- DosBeep(1000,300);
-
- makes a nice little "ta-da!" type sound effect. Etc.
- --
- |) David Charlap | .signature confiscated by FBI due to
- /|_ dic5340@hertz.njit.edu | an ongoing investigation into the
- ((|,) | source of these .signature virusses
- ~|~
-