Thread: sound problem
View Single Post
  #8  
Old 09-02-2005, 01:13 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Here are the following ways to stop a looping sound, depending on how you played them:
Code:
viz.playsound('sound.wav',viz.LOOP)
viz.playsound('sound.wav',viz.STOP)
.
.
obj.playsound('sound.wav',viz.LOOP)
obj.playsound('sound.wav',viz.STOP)
.
.
sound = viz.add('sound.wav')
sound.loop()
sound.play()
sound.stop()
I'm not aware of anything else that would stop a sound unless there is a bug. But I would need to replicate the problem before I could fix it.
Reply With Quote