Path: utzoo!attcan!uunet!crdgw1!gecrdvm1!darwees From: DARWEES@gecrdvm1.crd.ge.com Newsgroups: comp.sys.mac.programmer Subject: Async sound problems Message-ID: <90227.093609DARWEES@GECRDVM1.BITNET> Date: 15 Aug 90 13:36:09 GMT References: <25815@cs.yale.edu> Organization: General Electric Corporate Research & Development Lines: 30 Well, I've read the sound Manager Notes/Supplement and I guess, maybe I just do n't understand them. I have a snd1 that I would like to play while the rest of my program goes about its business (asynchronously I think is the term). I do n't want anything special...no frills..just an asyc. sound. I've tried opennin g a new channel with a callback procedure: sndnewchannel(mychan,0,initmono,@callback); then I start the sound: sndplay(mychan,mysndhdl,true); the call back procedure is a one-line procedure that sets a flag to true so I k now that I have to close the channel and I check that flag every time through m y main event loop to see if I have to: snddisposechannel(mychan,false); In real life, I DO check all error return values and alert if any are non-zero. The most frequent occurance goes like this: The snd gets played the first time all of this gets called, but if I call it ag ain, nothing happens although the program continues. I am almost positive that my callback routine is not being called, but I have no idea what my problem is. Any help would be greatly appreciated, Remember, all I really want is a method for async sounds. Thanks, -Mike Darweesh darwees@gecrdvm1.bitnet weesh@crd.ge.com