home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5374 < prev    next >
Encoding:
Text File  |  1992-07-30  |  594 b   |  19 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!csd.unb.ca!adam!mtj
  3. From: mtj@adam.unbsj.ca (Mike Jory)
  4. Subject: Re: Using a sound in an application...
  5. Message-ID: <1992Jul31.025720.901@jupiter.sun.csd.unb.ca>
  6. Sender: news@jupiter.sun.csd.unb.ca
  7. Organization: University of New Brunswick, Saint John
  8. References: <30JUL92.17051704@enh.nist.gov>
  9. Date: Fri, 31 Jul 1992 02:57:20 GMT
  10. Lines: 7
  11.  
  12. To play a sound, add the following code to your program:
  13. #import <sound/sound.h>
  14.  
  15. and whenever you want to play the sound:
  16. SNDPlaySoundfile(filename,0);
  17.  
  18.     mtj@unbsj.ca
  19.