Thanks for your help,
But in fact the problem I have is :
********* StopChannel works well
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
cube=CreateCube()
PositionEntity cube,0,0,3
CreateListener(camera)
Intro=Load3DSound("intro.mp3")
LoopSound(Intro)
CH_Sound=EmitSound(Intro,cube)
While Not KeyDown( 1 )
If KeyDown(16) Then
StopChannel(CH_Sound)
EndIf
RenderWorld
Flip
Wend
End
********* StopChannel doesn't work
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
cube=CreateCube()
PositionEntity cube,0,0,3
CreateListener(camera)
Intro=Load3DSound("intro.mp3")
LoopSound(Intro)
While Not KeyDown( 1 )
If KeyDown(30) Then
CH_Sound=EmitSound(Intro,cube)
EndIf
If KeyDown(16) Then
StopChannel(CH_Sound)
EndIf
RenderWorld
Flip
Wend
End
But in fact the problem I have is :
********* StopChannel works well
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
cube=CreateCube()
PositionEntity cube,0,0,3
CreateListener(camera)
Intro=Load3DSound("intro.mp3")
LoopSound(Intro)
CH_Sound=EmitSound(Intro,cube)
While Not KeyDown( 1 )
If KeyDown(16) Then
StopChannel(CH_Sound)
EndIf
RenderWorld
Flip
Wend
End
********* StopChannel doesn't work
Graphics3D 640,480
SetBuffer BackBuffer()
camera=CreateCamera()
cube=CreateCube()
PositionEntity cube,0,0,3
CreateListener(camera)
Intro=Load3DSound("intro.mp3")
LoopSound(Intro)
While Not KeyDown( 1 )
If KeyDown(30) Then
CH_Sound=EmitSound(Intro,cube)
EndIf
If KeyDown(16) Then
StopChannel(CH_Sound)
EndIf
RenderWorld
Flip
Wend
End