[futurebasic] Re: [FB] Playing continuous sounds

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2002 : Group Archive : Group : All Groups

From: Matthew Beedle <matt@...>
Date: Fri, 15 Feb 2002 12:30:03 -0700
All of the code that you need to focus on is found in the "Play Sampled 
Sound!" file. This is the line of code that determines if the sound will 
loop or not--

long if resID = 128

So if you wanted to use another id for looping, you would change 128 to 
something else.


On Friday, February 15, 2002, at 11:57  AM, tedd wrote:

> Hi:
>
> I have referenced a little demo below that raises a question as to how 
> 'snd ' files are played.
>
>      http://www.sperling.com/programs/FB_SoundForEver2.sit
>
> It appears that the 'snd ' resource itself may be the determining 
> factor if a 'snd ' resource can be looped or not. I need to understand 
> how and why and am looking for an explanation and/or documentation. IM 
> is simply confusing on the subject and the code is in Pascal, which I 
> can usually make my way through, but not this time.
>
> Please notice in the demo that resource 128 is a "looped" sound -- 
> whereas, resource 129 is not. One 'snd ' resource can be played one way 
> and the other another way -- but, neither 'snd ' can be played the way 
> the other is played -- if that makes sense.
>
> If anyone can shed light on how this 'snd ' thing works, I would 
> certainly appreciate it. I'm on my last mind and it's going fast.
>
> Many thanks for any reply.
>
> tedd
> -- http://sperling.com
>
> --
> To unsubscribe, send ANY message to <futurebasic-
> unsubscribe@...>
>
>
--

Matthew Beedle
President, Foxchange Software
http://www.foxchange.com/