ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/May-Jun/As-the-recording-skips...

This is As-the-recording-skips... in view mode; [Up]


Date: Sun 17-May-1989 18:38:02 From: Unknown Subject: Re: As the recording skips... #import <sound/sound.h> main(argc, argv) int argc; char *argv[]; { SNDSoundStruct *snd; SNDReadSoundfile(argv[1], &snd); SNDReserve(SND_ACCESS_OUT, 0); for (;;) { SNDStartPlaying(snd, 0, 0, 0, SND_NULL_FUN, SND_NULL_FUN); SNDWait(0); } } >From: eht@f.word.cs.cmu.edu (Eric Thayer)
Date: Sun 18-May-1989 14:12:34 From: Unknown Subject: Re: As the recording skips... 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 >From: ali@polya.Stanford.EDU (Ali T. Ozer)
Date: Sun 20-May-1989 03:33:12 From: Unknown Subject: Re: As the recording skips... 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 >From: ali@polya.Stanford.EDU (Ali T. Ozer)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.