[comp.sys.mac.programmer] Sound Manager under sys 6.0

castan@munnari.oz (Jason Castan) (07/26/88)

Some observations re sys 6.0, on a plus, using the sound manager:
while (true)
	SndNewChannel();
	SndPlay();
	SndDisposeChannel();

will bomb in the first iteration at SndDisposeChannel - removing SndDisp
doesn't help - the sound will play but after each loop the mac will slow, 
eventually stopping the whole system. - the solution? Use SndDisp - So
as you can see a catch 22 situation.

After a bit of disassembly it seems that the sampledSynth on the plus
is STUFFED, as when using the noteSynth everything works ok. Perhaps
apple could look into this.

The above problems are non-existent on a ][. 


Summary: Can't play snd format 1 resources asynchronously on mac
plus.

In repest to people wanting a snd vonversion program - ie to install 
soundcap (soundmaster) files into hypercard, I'll be uploading a demo
version soon - If apple would fix the sound manager it would be sooner.

				Jason.

lsr@Apple.COM (Larry Rosenstein) (08/02/88)

In article <2255@munnari.oz> castan@munnari.oz (Jason Castan) writes:
>Some observations re sys 6.0, on a plus, using the sound manager:
>while (true)
>	SndNewChannel();
>	SndPlay();
>	SndDisposeChannel();
>
>will bomb in the first iteration at SndDisposeChannel - removing SndDisp
>doesn't help - the sound will play but after each loop the mac will slow, 
>eventually stopping the whole system. - the solution? Use SndDisp - So

This doesn't agree with my experience with TimeKeeper.  It calls
SndDisposeChannel and seems to work find under system 6.0 on a Mac Plus.
There must be some other fator involved.



		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 46-B  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr