home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
- From: REEKES@applelink.apple.com (Jim Reekes)
- Subject: Re: Sound usage help
- Sender: news@gallant.apple.com
- Message-ID: <REEKES-121292203006@90.10.20.67>
- Date: Sun, 13 Dec 1992 04:32:20 GMT
- References: <1992Dec11.195917.7434@rtsg.mot.com>
- Organization: Apple Computer, Inc.
- Followup-To: comp.sys.mac.programmer
- Lines: 52
-
- In article <1992Dec11.195917.7434@rtsg.mot.com>, wolfmc@rtsg.mot.com
- (Michael Wolf) wrote:
- >
- > I had thought at one time I had the Sound Manager and compatibility issues
- > conquered, but some odd crashes have made me wonder.
- >
- > First, what are the correct gestalts or methods of ensuring the environment
- > you are currently running on can run synchronous or asynchronously, how to
- > tell how stereo capabilities.
-
- Gestalt will tell you if stereo is available and if it's mixed to the
- internal speaker. All of the Sound Managers that have been released will
- perform asynchronously.
-
- > The correct method of allocating a sound
- > channel (should I create my own SndChannel variable or let SndNewChannel do
- > it for me).
-
- Just call SndNewChannel, unless you want to manage the memory yourself or
- wish to create a smaller SndChannel.
-
- chan = nil;
- SndNewChannel(chan, sampledSynth, 0, CallBackProc);
-
- - or -
-
- chan = GetSomeMemory(sizeof(YourChannel));
- chan->qLength = HowManyCommandsYourChannelHolds;
- SndNewChannel(chan, sampledSynth, 0, CallBackProc);
-
-
- > I looked through the tech notes (1-310 or so) on anything to do with sound,
- > but I did not see anything like I wanted to know. I also looked through the
- > sample codes (1-30 or so) and nothing there for sound sample code.
- >
- > So, is there some nice sample code available for doing the many wonderous
- > things with sound?
-
- Then you didn't look hard enough. Look for SoundApp. It is official
- MacDTS sample code, written by yours truely.
-
- > Also, I assume any machine which doesn't have an apple sound chip will not
- > be able to run asynchronous sounds?
-
- See answer #1.
-
- -----------------------------------------------------------------------
- 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."
-