Path: utzoo!attcan!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!sunybcs!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: Playing a sequence of Sounds Message-ID: <130075@gore.com> Date: 30 May 90 22:48:29 GMT Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 36 I need to have a sequence of sounds played out. Each sound is under a second long, and I need a couple of seconds pause between successive sounds. It seems simple enough, but I can't get it to work. The program hangs on around the 4th sound (depending on what the pause is). I tried (under 1.0): 1. Doing it in an Application, and in a simple program 2. Using and not using -didPlay: in a delegate, which, as far as I can tell, never gets called (I put printf's in it, but never got any output). 3. Using no delay, using usleep() for delay, and using for (startTime = time(0); time(0) < startTime + delay; ) { cthread_yield(); } for delay. And, since setting sound fields of buttons in IB does have the desired effect (clicking on all the buttons sequentially played all the sounds), I even tried: 4. Using a dummy button, assigning sounds to it (with -setSound:, one at a time), and doing a -performClick: on it. Like I said, the task seems simple enough. Can this be done? What's the trick? Jacob -- Jacob Gore Jacob@Gore.Com boulder!gore!jacob