home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19764 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.2 KB

  1. Path: sparky!uunet!spool.mu.edu!wupost!waikato.ac.nz!ldo
  2. From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Background your Sound!
  5. Message-ID: <1992Dec14.175544.12781@waikato.ac.nz>
  6. Date: 14 Dec 92 17:55:44 +1300
  7. References: <1992Dec09.173722.69189@uu0570.foggybottom.com> <1g7vhfINN146@agate.berkeley.edu> <ingemar.724077533@isy> <1992Dec11.215300.2937@hobbes.kzoo.edu>
  8. Organization: University of Waikato, Hamilton, New Zealand
  9. Lines: 33
  10.  
  11. In article <1992Dec11.215300.2937@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
  12. > ingemar@isy.liu.se (Ingemar Ragnemalm) writes:
  13. >>
  14. >>Speaking of asynchronous sound, what are the "rules" about several channels
  15. >>open at once? I have tried to make two channels for sampled sounds on an
  16. >>LC...  I get "not enough hardware".
  17. >
  18. > I've heard this from other people, but I'll personally affirm that one
  19. > can get two channels open on an LC.  Maybe if you showed us your code?
  20. >
  21. > On my IIci, one "good-quality" channel takes about 18% of the CPU
  22. > time.  I think it's a trifle over 30% on the LC.
  23.  
  24. It also depends on what you ask the channel to do. Playing a single channel
  25. of MACE compressed sound takes 48% of the CPU on my LC (or so the Sound
  26. Manager says). I can indeed play two such channels at once, and *everything*
  27. else on the machine (particularly screen drawing!) slows to a c-r-a-w-l.
  28.  
  29. With uncompressed sound, I have had 3 channels open at once with no problem,
  30. sometimes even 4. I think getting the 4th channel had something to do with
  31. not requesting sample-rate conversion, but it's been a while since I
  32. experimented with it. I remember getting that 30% figure when opening the
  33. first channel, but as I recall subsequent channels only increased the
  34. utilization by something like 18% each.
  35.  
  36. I managed to fool the Sound Manager once (I must figure out how to do it
  37. again) and open enough channels to take the CPU utilization over 100%.
  38. Things sort of ran, but it wasn't a great deal of fun. :-)
  39.  
  40. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  41. Computer Services Dept                     fax: +64-7-838-4066
  42. University of Waikato            electric mail: ldo@waikato.ac.nz
  43. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  44.