home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22381 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.0 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!howland.reston.ans.net!spool.mu.edu!agate!usenet.ins.cwru.edu!po.CWRU.Edu!mab22
  2. From: mab22@po.CWRU.Edu (Michael A. Balfour)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: need help with Sound Manager!
  5. Date: 28 Jan 1993 20:34:40 GMT
  6. Organization: Case Western Reserve University, Cleveland, Ohio (USA)
  7. Lines: 37
  8. Message-ID: <1k9g10INNgt6@usenet.INS.CWRU.Edu>
  9. NNTP-Posting-Host: slc5.ins.cwru.edu
  10.  
  11.  
  12. Hi!  I've spent quite a bit of time writing routines that will play
  13. background music during the execution of a program (i.e. game).  I've run
  14. into a few problems:
  15.  
  16. 1) If I use the wave table, it seems that I can't open a channel that uses
  17. sampled sound.  This would be useful for sound effects.
  18.  
  19. 2) If I use the wave table, I also can't open another channel that uses the
  20. wave table if all 4 wave tables are already taken.  It would be useful to
  21. override the sound coming out of that wave channel for wave sound effects,
  22. if I can't play sampled ones.  I can't just stop and start the older
  23. channel, because that would wreck any sort of synchronizing that I have
  24. going.
  25.  
  26. 3) If I use samples installed as instruments, I can't open more than 3
  27. channels, and this slows down performance tremendously.  I've seen programs
  28. (Studio Session, Prince of Persia) that can run several channels of samples
  29. without slowing down, so it MUST be possible...
  30.  
  31. In Inside Macintosh Volume II, there's a reference in the Device Manager
  32. chapter to being able to load the Sound Buffer with 370 bytes at a time
  33. that get sent directly to the speaker.  If there aren't any solutions to
  34. the above problems, is it realistically possible to write entirely new
  35. routines that access the Sound Buffer directly?  If so, I understand how to
  36. transpose waves and samples, but how do you play more than one at the same
  37. time?
  38.  
  39. If you have an answer that's too long to answer here, PLEASE e-mail me!
  40.  
  41. Mike Balfour
  42. Student
  43. Case Western Reserve University
  44. Cleveland, OH
  45.  
  46. mab22@po.cwru.edu
  47.  
  48.