home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15292 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.7 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!usenet.coe.montana.edu!news.u.washington.edu!nntp.uoregon.edu!cs.uoregon.edu!geriatrix.cs.uoregon.edu!jasper
  2. From: jasper@geriatrix.cs.uoregon.edu (Jon Barber)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Sound Loop in a with a Modal Dialog?
  5. Summary: this guy needs asynchronous sound
  6. Message-ID: <1992Sep10.172752.19114@cs.uoregon.edu>
  7. Date: 10 Sep 92 17:27:52 GMT
  8. References: <1992Sep3.145524.8874@utkux1.utk.edu> <REEKES-080992142744@90.10.20.67>
  9. Sender: news@cs.uoregon.edu (Netnews Owner)
  10. Organization: University of Oregon Computer and Information Sciences Dept.
  11. Lines: 28
  12.  
  13. >>(Danny W. McCampbell) wrote:
  14. >> 
  15. >> Hi.  I want to play a sound continuously while a modal dialog is 
  16. >> present on the screen.
  17.  
  18. > Jim Reekes from Apple responds:
  19. >
  20. >The approach I would take is to start the sound, then call ModalDialog.
  21. >You need to use the callBackCmd and a CallBackProc.  You first play the
  22. >sound (ie. bufferCmd) then issue the callBackCmd.  When the sound ends
  23. >your CallBackProc is called.  This will call SndDoCommand with another
  24. >bufferCmd to start the sound again.
  25.  
  26. yahh man - you have a wrong approach.  You definitely want
  27. to use the way cool _asynchronous_ capabilities of the
  28. sound manager.  Jim's saying the same thing, if a little
  29. technically.  
  30.  
  31. I just finished a way cool Think C 5.0 TCL class "CQuickSound" which
  32. would is specifically for playing asychronous sounds efficiently
  33. and with minimal pain for the programmer.  
  34.  
  35. How many people would be interested in free- or share-ware code
  36. for quick&easy asynchronous sound playback?
  37.  
  38. As Byan K. "Beaker" Ressler says, "Join the Noisy Revolution Today!"
  39.  
  40.     - jasper@cs.uoregon.edu
  41.