home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / misc / 43506 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!usc!rpi!uwm.edu!linac!uchinews!ellis!sip1
  3. From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
  4. Subject: Re: MMPM/2 and PC speaker
  5. Message-ID: <1993Jan21.231136.8615@midway.uchicago.edu>
  6. Sender: news@uchinews.uchicago.edu (News System)
  7. Reply-To: sip1@midway.uchicago.edu
  8. Organization: Dept. of Econ., Univ. of Chicago
  9. References: <1993Jan17.005410.1297@yvax.byu.edu> <1993Jan21.201216.21162@njitgw.njit.edu>
  10. Date: Thu, 21 Jan 1993 23:11:36 GMT
  11. Lines: 26
  12.  
  13. In article <1993Jan21.201216.21162@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
  14. >There exists the DosBeep() function for simple beeping type sounds.  You
  15. >can get a useable range of sounds with that (ask any Turbo Pascal 3.x
  16. >programmer!).  As for digitized sound, the timings involved are too
  17. >critical for any multitasker to handle properly.
  18.  
  19. You didn't mean that, did you?  :-)
  20.  
  21. To clarify, MMPM/2 is one darn good platform for multimedia.  It does
  22. work beautifully while all kinds of background tasks are taking place.
  23.  
  24. >Just in case you don't have documentation, this call is simple:
  25. >DosBeep(note, duration);
  26. >Where note is the frequency in Hz, and duration is the length of the
  27. >note in milliseconds.  So
  28. >    DosBeep( 500,100); 
  29. >    DosBeep(1000,300);
  30. >makes a nice little "ta-da!" type sound effect.  Etc.
  31.  
  32. This call is available almost identically through REXX, by the way.
  33.  
  34. -- 
  35. Timothy F. Sipples      | Read the OS/2 FAQ List 2.0i, available from
  36. sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
  37. Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
  38. of Chicago, 60637       | [Read the List, THEN post to ONE OS/2 newsgroup.]
  39.