home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20486 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  2.0 KB

  1. Path: sparky!uunet!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
  2. From: REEKES@applelink.apple.com (Jim Reekes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Sound Manager usage on SE
  5. Message-ID: <REEKES-311292132558@90.10.20.67>
  6. Date: 31 Dec 92 21:25:51 GMT
  7. References: <92Dec21.233649.24843@acs.ucalgary.ca> <1992Dec29.182159.8272@rtsg.mot.com>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 31
  12.  
  13. In article <1992Dec29.182159.8272@rtsg.mot.com>, wolfmc@rtsg.mot.com
  14. (Michael Wolf) wrote:
  15. > I have some sounds I want to play in an application.  Which machines can
  16. > play sounds synchronously?
  17. > On my SE if I call PlaySnd, pass it a channel created via SndNewChannel,
  18. > and I tell PlaySnd to play it asynchronously (pass it false in the async
  19. > parameter), I get one sound to play, there after every call to PlaySnd
  20. > will not play a sound.
  21. > Also, why is the async flag in PlaySnd opposite of what it would be
  22. > intuitive to its name, ie:  if you pass true in async, the sound will be
  23. > played synchronously.  Whose the add wizard who came up with that idea?
  24.  
  25. You're probably using system 6.0.x and are not aware of the documented bug
  26. when using a channel more than once with SndPlay. If you read the older
  27. documentation that I wrote in 1988, the replacement Sound Manager chapter,
  28. you'll find this mentioned.  It's also in the SoundApp sample code from
  29. MacDTS. This bug was fixed in System 7.0.
  30.  
  31. The asynch flag works as documented.  If it's true, then it play
  32. asynchronously.  If it's false, then it doesn't. What "wizard" has
  33. convinced you otherwise?
  34.  
  35. -----------------------------------------------------------------------
  36. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  37.                              |          Sound Manager Expert
  38. Apple Computer, Inc.         | "All opinions expressed are mine, and do
  39. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  40. Cupertino, CA 95014          |       employer, Apple Computer Inc."
  41.