Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!phoenix!paul From: paul@phoenix.Princeton.EDU (Paul Lansky) Newsgroups: comp.sys.next Subject: soundkit problem Keywords: soundkit playroutines Message-ID: <9084@phoenix.Princeton.EDU> Date: 21 Jun 89 02:52:28 GMT Organization: Princeton University, NJ Lines: 27 In the following program the third waitUntilStopped never returns. Am I missing some important piece of information? #import #import main() { int error,a,b; id mySound = [Sound new]; id copySound = [Sound new]; a = 100000; b = 50000; [mySound readSoundfile:"yy.snd"]; [copySound copySamples:mySound at:a count:b]; [copySound play]; printf("returned first %d\n",[copySound waitUntilStopped]); [copySound play]; printf("returned second %d\n",[copySound waitUntilStopped]); [copySound play]; printf("returned third %d\n",[copySound waitUntilStopped]); // ??? never returns from this final wait }