home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13877 < prev    next >
Encoding:
Text File  |  1992-08-12  |  2.0 KB  |  42 lines

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