Path: utzoo!utgpu!attcan!uunet!super!udel!princeton!njin!rutgers!ucsd!ames!elroy!dhw68k!bytebug
From: bytebug@dhw68k.cts.com (Roger L. Long)
Newsgroups: comp.sys.mac.programmer
Subject: Allocating my own (longer) SndChannel record
Message-ID: <12259@dhw68k.cts.com>
Date: 27 Sep 88 10:32:05 GMT
Sender: uucp@super.ORG
Reply-To: bytebug@dhw68k.cts.com (Roger L. Long)
Organization: Wolfskill residence; Anaheim, CA (USA)
Lines: 19

I'd like to use the Sound Manager to asynchronously play some 'snd '
resources with more than 128 SndCommands.  Actually, I want to open
four channels, and play four 'snd ' resources for 4 voice music.

The problem is, that with more than 128 SndCommands in the 'snd '
resource, SndPlay doesn't return right away, so my four consecutive
SndPlay calls don't result in the 4 voices playing in sync.

I've changed my code to allocate the SndChannel record with a longer
queue, and after my call to SndNewChannel, I modify qLength to reflect
my longer queue.  This fixes my problem, and music comes out sounding
fine.  However, the IM-V chapter on the Sound Manager states that
qLength "must always be ORD(stdQLength)".

So, how much trouble will I get into if I allocate my own SndChannel
records with queues longer or shorter than stdQLength?
-- 
	Roger L. Long
	dhw68k!bytebug