WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-26-2008, 02:36 PM
roman_suvorov roman_suvorov is offline
Member
 
Join Date: May 2008
Location: Kingston, ON, Canada
Posts: 25
Question Sound doesn't play from director functions

Hello, when running a sample script like this one:

Code:
import viz
viz.go()

def playSound():
	sound = viz.addAudio("quack.wav")
	sound.play()
	return
	
viz.director(playSound)
.. no sound is played and the following error message is displayed:

Code:

** ERROR: Failed to create graph builder (CoInitialize has not been called. )
** ERROR: Failed to load audio 'quack.wav'
However, this works fine:
Code:
import viz
viz.go()
sound = viz.addAudio("quack.wav")
sound.play()
.. so I figured this must have something to do with Vizard's handling of director functions. Any ideas?
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT -7. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC