[futurebasic] Re: [FB] Playing continuous sounds

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

From: tedd <tedd@...>
Date: Fri, 15 Feb 2002 16:43:56 -0500
>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.

Matthew:

Did you try my code? Look a little closer, if you would be so kind.

I have both resource ID's of 128 and 129 noted in my code -- I know 
how to change the resID from one to the other.

The point of the exercise was that one sound resource is played by 
one set of statements and the other sound resource is played by 
another single statement.

However, if you switch the two and try to play the looping sound 
resource by using the single SndPlay statement, it won't play! 
Likewise if you use the other 'snd ' resource (129) and try to play 
it via the DoSndImmediate()  command, that won't work either!

Remember, that both resources ARE 'snd ' resources and both can be 
played. However, how you play one as compared to the other is 
different and my inquiring mind wants to know why.

tedd
-- 
http://sperling.com