[comp.sys.mac.programmer] Allocating my own

bytebug@dhw68k.cts.com (Roger L. Long) (09/27/88)

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

oster@dewey.soe.berkeley.edu (David Phillip Oster) (09/29/88)

Roger Long has trouble playing 4 voice music wiht queues the standard
length.

The new sound manager has commands for synchronizng the multiple channels.
Do those synchronization commands not work? Which revision of the system
file are you using?

--- David Phillip Oster            --When you asked me to live in sin with you
Arpa: oster@dewey.soe.berkeley.edu --I didn't know you meant sloth.
Uucp: {uwvax,decvax,ihnp4}!ucbvax!oster%dewey.soe.berkeley.edu