home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!udel!gvls1!jabber!distant!edw
- From: edw@distant.uucp (Ed Watkeys)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Background your Sound!
- Date: Fri, 11 Dec 92 18:32:17 EST
- Organization: Distant Software
- Message-ID: <01050133.kt3ph3@distant.uucp>
- Reply-To: edw%distant@bts.com
- X-Mailer: uAccess - Macintosh Release: 1.6v2
- Lines: 36
-
-
- In article <ingemar.724077533@isy> (comp.sys.mac.programmer), ingemar@isy.liu.se (Ingemar Ragnemalm) writes:
- > werner@dewey.soe.berkeley.edu (John Werner) writes:
- >
- > >In article <1992Dec09.173722.69189@uu0570.foggybottom.com> Daniel_R._Sandler@uu0570.foggybottom.com writes:
- > >>OK,ok, to the point: How do I play sound while something else is ahppening,
- > >>like so many games for the Mac, and even HyperCard? If my games have to stop
- > >>and pause to let a sound play, it really ruins the hole effect.
- >
- > >It's not that hard. Use SndPlay, with the last "async" parameter set
- > >to TRUE. The catch is that this only works if you're using your own
- > >sound channel. So the code looks something like this:
- >
- > (code deleted)
- >
- > Speaking of asynchronous sound, what are the "rules" about several channels
- > open at once? I have tried to make two channels for sampled sounds (on an
- > LC), to play a sequence of notes on one of them (with a snd installed as
- > "instrument") and various sound effects on the other. I get "not enough
- > hardware". What information have I missed? Can't I have two sampled sound
- > channels, or can't I use one of them for melodies?
- >
- > What can be done and what can't when using several channels?
-
- I think this is addressed in the Sound Manager chapter of IM VI. If I recall,
- you get a 'not enough hardware' error if you ask for too many channels with
- too high a quality. This is hardware dependent, of course. :)
-
- Ed
-
- > Ingemar Ragnemalm
-
- --
- Edwin H. Watkeys III edw@distant.uucp
- Distant Software dsinc!jabber!distant!edw
- +1 215 387 7971 edw%distant@bts.com
-