[futurebasic] Re: [FB] Stopping a rsrc sound

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Pierre Zippi <pzippi@...>
Date: Fri, 28 May 1999 14:20:40 -0500
Directly out of FBII Help:
SOUND END

Definition

Stops playing a sound resource and disposes any memory it is using.

Example

SOUND "tinkleTinkle"     'start playing sound
SOUND END                'stops playing and disposes sound

Cross reference

SOUND RESUME, SOUND WAIT, SOUND, WAVE


Doug Hull wrote:
> 
> I am using FB II and in my program I use a resource file that has sounds in
> it.  These sounds are only 1-4 seconds long.  I get and play the sound by
> using the id of a particular sound in the following way:
> 
> id%=15445
> sndNum$="%"+MKI$(id%)
> SOUND sndNum$
> 
> This is very simple.  My question is how can I stop the sound if needed?  This
> is a research program and I need to stop the sound as soon as a client makes
> some sort of response.
> 
> If anyone can help I would appreciate very much.
> 
> Thanks,
> Doug

-- 
Pierre A. Zippi
+++++++++++++++++++++++
Home email: paz@...
Home web: http://web2.airmail.net/paz