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