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

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:
import winsound
winsound.PlaySound('sound.wav',winsound.SND_ASYNC | winsound.SND_LOOP )
Reply With Quote