Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!bsu-cs!mithomas From: mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) Newsgroups: comp.sys.mac.programmer Subject: Playing sounds async: help Message-ID: <7975@bsu-cs.bsu.edu> Date: 29 Jun 89 16:10:42 GMT Organization: CS Dept, Ball St U, Muncie, IN, USA Lines: 22 Help! I am trying to get async sounds to work using the sound manager, but I have a couple of questions: 1. Why am I not supposed to leave an open sound channel for a period of time? 2. Right now, I am allocating a new channel, then doing the SndPlay. I can see that the processing right after that is getting done. But it finishes before the sound. So my SndDisposeChannel (or however it is spelled) will just sit there and wait until the sound is finished. (Yes, I want it to do that -- I don't want to chop the sound off right in the middle of playing.) I could check in the event loop to see if the sound is done, and if it is then dispose the channel. But how can I find out if it is finished? Mac programming is so much fun (seriously)... -Michael -- Michael Niehaus UUCP: !{iuvax,pur-ee}!bsu-cs!mithomas Apple Student Rep ARPA: mithomas@bsu-cs.bsu.edu Ball State University AppleLink: ST0374 (from UUCP: st0374@applelink.apple.com)