Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Re: As the recording skips... Message-ID: <9266@polya.Stanford.EDU> Date: 18 May 89 14:12:34 GMT References: <191@ncis.tis.llnl.gov> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Distribution: usa Organization: . Lines: 26 In article <191@ncis.tis.llnl.gov> John Carlson writes: >Well, I haven't RTFM yet, but is there some way to continuously >repeat a sound file (with no opens and closes, resetting options, etc.). >(It would be nice.) I don't think sndplay has such an option. Using the Sound object, you can do it by having the "didPlay:" delegate method invoke the sound again. This would let you play sounds in the background (in its own Mach thread) but continuously repeat it: - didPlay:sound { [sound play]; return self; } - playContinuously:sound { [sound setDelegate:self]; [sound play]; return self; } Ali Ozer, NeXT Developer Support aozer@NeXT.com