ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/May-Jun/SoundKit-problem

This is SoundKit-problem in view mode; [Up]


Date: Sun 26-Jun-1989 18:11:36 From: Unknown Subject: Re: SoundKit problem >In the following program the third waitUntilStopped never returns. Am >I missing some important piece of information? This is a bug in the 0.9 SoundKit. To get around it, you should use the Application event loop (with the "run" method) and also use the Sound class delegation mechanism to get the sound to repeatedly play itself. In the simplest case, you'd have a subclass of Application that looks like: #import "TestApp.h" #import <soundkit/Sound.h> @implementation TestApp - appDidInit:app { [[[Sound newFromSoundfile:"foo.snd"] setDelegate:self] play]; return self; } - didPlay:sound { [sound play]; } @end The above code, coupled with an IB-generated main program and Makefile will work fine. The advantage of this code is that your events (such as hitting the "Quit" button) will be detected and processed. And of course it will play the sound more than 3 times. Ali Ozer, NeXT Developer Support aozer@NeXT.com >From: dpd00609@uxa.cso.uiuc.edu
Date: Sun 28-Jun-1989 01:02:36 From: Unknown Subject: Re: SoundKit problem I want to repeatedly play a sound seamlessly, without the small pause that occurs with the examples posted (I tried the SND routines and the setDelegate:self technique). The SNDPrepareToPlay routine seems not to have any effect. Is there a workaround for this? Would accessing the Mach sound driver ports directly be faster? I'd like to avoid writing DSP code if possible. Will this be fixed in 1.0? Will 1.0 support arbitrarily long WaveTables? (This will solve my problem.) The sounds I want to loop are on the order of a few seconds. Has anybody done this? Bill Thibault csuh!tebo@lll-winken.llnl.gov >From: rrr@cup.portal.com (Roger Rock Rosner)
Date: Sun 28-Jun-1989 20:01:32 From: Unknown Subject: Re: SoundKit problem In article <19933@cup.portal.com> William_Charles_Thibault@cup.portal.com >I want to repeatedly play a sound seamlessly, without the small pause >that occurs with the examples posted (I tried the SND routines and >the setDelegate:self technique). The SNDPrepareToPlay routine seems >not to have any effect. Is there a workaround for this? No. 1.0 will provide seamless sound playing by allowing you to queue up sounds at the sound library level. You will also be able to record into different objects without losing any samples. The 0.9 sound library does not allow queueing. >Would accessing the Mach sound driver ports directly be faster? Yes. Unfortunately, this is highly discouraged at this stage, as this low-level interface is changing for 1.0. Ali Ozer, NeXT Developer Support aozer@NeXT.com >From: ali@polya.Stanford.EDU (Ali T. Ozer)
Date: Sun 28-Jun-1989 20:01:32 From: Unknown Subject: Re: SoundKit problem In article <19933@cup.portal.com> William_Charles_Thibault@cup.portal.com >I want to repeatedly play a sound seamlessly, without the small pause >that occurs with the examples posted (I tried the SND routines and >the setDelegate:self technique). The SNDPrepareToPlay routine seems >not to have any effect. Is there a workaround for this? No. 1.0 will provide seamless sound playing by allowing you to queue up sounds at the sound library level. You will also be able to record into different objects without losing any samples. The 0.9 sound library does not allow queueing. >Would accessing the Mach sound driver ports directly be faster? Yes. Unfortunately, this is highly discouraged at this stage, as this low-level interface is changing for 1.0. Ali Ozer, NeXT Developer Support aozer@NeXT.com >From: andy@phoenix.Princeton.EDU (Andrew M. Milburn)

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