home *** CD-ROM | disk | FTP | other *** search
- 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
- From: mab22@po.CWRU.Edu (Michael A. Balfour)
- Newsgroups: comp.sys.mac.programmer
- Subject: need help with Sound Manager!
- Date: 28 Jan 1993 20:34:40 GMT
- Organization: Case Western Reserve University, Cleveland, Ohio (USA)
- Lines: 37
- Message-ID: <1k9g10INNgt6@usenet.INS.CWRU.Edu>
- NNTP-Posting-Host: slc5.ins.cwru.edu
-
-
- Hi! I've spent quite a bit of time writing routines that will play
- background music during the execution of a program (i.e. game). I've run
- into a few problems:
-
- 1) If I use the wave table, it seems that I can't open a channel that uses
- sampled sound. This would be useful for sound effects.
-
- 2) If I use the wave table, I also can't open another channel that uses the
- wave table if all 4 wave tables are already taken. It would be useful to
- override the sound coming out of that wave channel for wave sound effects,
- if I can't play sampled ones. I can't just stop and start the older
- channel, because that would wreck any sort of synchronizing that I have
- going.
-
- 3) If I use samples installed as instruments, I can't open more than 3
- channels, and this slows down performance tremendously. I've seen programs
- (Studio Session, Prince of Persia) that can run several channels of samples
- without slowing down, so it MUST be possible...
-
- In Inside Macintosh Volume II, there's a reference in the Device Manager
- chapter to being able to load the Sound Buffer with 370 bytes at a time
- that get sent directly to the speaker. If there aren't any solutions to
- the above problems, is it realistically possible to write entirely new
- routines that access the Sound Buffer directly? If so, I understand how to
- transpose waves and samples, but how do you play more than one at the same
- time?
-
- If you have an answer that's too long to answer here, PLEASE e-mail me!
-
- Mike Balfour
- Student
- Case Western Reserve University
- Cleveland, OH
-
- mab22@po.cwru.edu
-
-