![]() |
#2
|
|||
|
|||
You need to add the sound object in the main thread. Once it is added you should be able to play it in other director threads.
If it is necessary for you to add the sound object in the director thread, then you can install the pywin32 library for python and use the following code: Code:
import viz import pythoncom viz.go() def playSound(): pythoncom.CoInitialize() #Initialize COM sound = viz.addAudio("quack.wav") sound.play() pythoncom.CoUninitialize() #Uninitialize COM return viz.director(playSound) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sound Looping Problem | JMOwens | Vizard | 4 | 09-29-2010 09:42 PM |
On click Sound Play Problems | Robbos | Vizard | 1 | 02-28-2008 02:02 PM |
Stuttering sound | Jerry | Vizard | 1 | 06-13-2007 12:36 PM |
Sound in one ear only? | Jerry | Vizard | 1 | 06-29-2006 04:26 PM |
sound problem | alaa | Vizard | 7 | 09-02-2005 01:13 PM |