home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gumby!destroyer!ncar!ncar.ucar.edu!hpoppe
- From: hpoppe@ncar.ucar.edu (Herb Poppe)
- Subject: Re: GetKeys, Events, Sound Manager
- Message-ID: <1992Aug12.151958.29549@ncar.ucar.edu>
- Sender: news@ncar.ucar.edu (USENET Maintenance)
- Organization: Scientific Computing Division/NCAR Boulder, CO
- Date: Wed, 12 Aug 1992 15:19:58 GMT
- Lines: 31
-
- In article <1992Aug11.203247.15836@athena.mit.edu> slchambe@athena.mit.edu
- (Stephen L Chamberlin) writes:
-
- > 3. Ok, so I lied about there only being 2 questions. Is there any limit
- to
- > the number of channels that can be open at once to the sampled sound
- > synth? It seems that when I try to open more than 3 such channels,
- > SndNewChannel returns a valid channel pointer for the 4th and subsequent
- > channels, but if I try to play sounds on those channels I get silence.
- But if
- > I dispose of one of the first 3, channel 4 magically starts working. It
- also
- > seems that the limit is not 3 channels per app, but 3 channels total for
- the
- > whole computer, all apps combined.
-
- There is a limit on the number of sampled sound channels that may be active
- at once. This limit is machine dependent. The faster the machine, the more
- channels. If I remember correctly, the limit on a Mac Plus is one. At one
- time the maximum number of channels was four, but that was before the
- Quadras were introduced. I don't know if the Quadras support more active
- channels, or if the Sound Manager has some hard-wired upper limit. Also,
- the determination of the maximum number of channels is dynamic: if the
- machine is "busy with other things", the limit may be reduced. And yes,
- the limit is for the machine as a whole and is not an application limit.
- Therefore, Apple suggests you dispose of the channels at "suspend" time,
- so they can be made available to the app that comes to the foreground.
-
- Herb Poppe National Center for Atmospheric Research (NCAR)
- hpoppe@ncar.ucar.edu 1850 Table Mesa Dr.
- (303) 497-1296 Boulder, CO 80303
-