home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7130 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.5 KB  |  43 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!news.tek.com!psgrain!charnel!rat!usc!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!mizar.cc.umanitoba.ca!news
  3. From: tacchi@next01.cc.umanitoba.ca. (Mark G. Tacchi)
  4. Subject: Re: Simple Sound Question
  5. Message-ID: <BxIM2w.K3p@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: tilley.cc.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. References: <BxGuMy.Dtt@ccu.umanitoba.ca>
  10. Date: Tue, 10 Nov 1992 19:28:06 GMT
  11. Lines: 30
  12.  
  13. In article <BxGuMy.Dtt@ccu.umanitoba.ca> tacchi@next01.cc.umanitoba.ca. (Mark  
  14. G. Tacchi) writes:
  15. > Can anyone point out why this does't make a sound?  I suppose there is more  
  16. to  
  17. > it than these few lines, right?
  18. > @implementation MySound:Sound
  19. > - beep {
  20. >   const char *theName= "Tink.snd";
  21. >   [self setName:theName];
  22. >   [self play];
  23. >   return self;}
  24. > @end
  25. > I can use the SNDPlaySoundfile(path,priority) and that works.
  26.  
  27. Thanks to those who responded to my posting.  The implementation I will be  
  28. using is simply:
  29.  
  30.  @implementation MySound:Sound
  31.  - beep {
  32.    [[Sound findSoundFor:"Tink"] play];
  33.    return self;}
  34.  @end
  35.  
  36. --
  37. Mark G. Tacchi                                    tacchi@next01.cc.umanitoba.ca
  38.   Unix Support Group                                        (NeXT Mail Welcome)
  39.   University of Manitoba Computer Services
  40.  "My opinions are my own, and do not necessarily reflect those of my employer."
  41.