View Single Post
  #2  
Old 07-27-2007, 01:00 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Vizard uses DirectX for playing audio, and unfortunately it isn't good at seamlessly looping sounds. The Python winsound module seems to handle it a little better. Here is some sample code for looping a sound using this module:
Code:
import winsound
winsound.PlaySound('sound.wav',winsound.SND_ASYNC | winsound.SND_LOOP )
Reply With Quote