Sound

Blitz3D Forums/Blitz3D Programming/Sound

Yue(Posted 2010) [#1]
Hello,
That way there is to know when a sound finished to continue with another, for example I have the Jeep and put the keys to hear the starter motor then the motor liability.

A greeting.


Matty(Posted 2010) [#2]
mysoundchannel=playsound(soundhandle)

then use:

channelplaying(mysoundchannel) to determine if the channel is currently playing.


Yue(Posted 2010) [#3]
:) Thanks Men


Yue(Posted 2010) [#4]
Hi do not know if I'm doing the right thing, but I need to pause a sound and it does not work.
	
If KeyHit(18) 
		
		Girando_Llaves = 1 -Girando_Llaves
		If Girando_Llaves = 1 
			Encendido = PlaySound(Sonido3)
			LoopSound (Sonido2)
			Motor_Marcha = PlaySound (Sonido2)
		ElseIf Girando_Llaves = 0
			
			PauseChannel (Motor_Marcha)
		End If 
			
	End If 



Yue(Posted 2010) [#5]
all resolved, the variable had to be global.
A greeting.