WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 1.33 average. Display Modes
  #1  
Old 11-09-2004, 04:19 PM
adimov adimov is offline
Member
 
Join Date: Sep 2003
Location: Santa Barbara, CA
Posts: 11
vizrecorder

I get an error (winviz.exe has encountered a problem and....) when I try to use the vizrecorder.dll. I am running the following code and it crashes when I press spacebar:

import viz
import vizrecorder

viz.go()

text = viz.add(viz.TEXT3D,'Recording',viz.SCREEN)
text.alignment(viz.TEXT_CENTER_CENTER)
text.translate(0.5,0.5)
text.visible(0)
text.recording = 0

def mykey(key):
if key == ' ':
text.recording = not text.recording
text.visible(text.recording)
if text.recording:
vizrecorder.record('voice.wav')
else:
vizrecorder.stop()

viz.callback(viz.KEYBOARD_EVENT,mykey)
Reply With Quote
  #2  
Old 11-09-2004, 04:29 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Run the script without pressing the spacebar. Does it output anything? It should print out something along the lines of "** NOTIFY: Found the following sound capture devices:"
Reply With Quote
  #3  
Old 11-09-2004, 04:33 PM
rosanna rosanna is offline
Member
 
Join Date: Sep 2003
Posts: 6
it says: error, could not initialize direct sound
Reply With Quote
  #4  
Old 11-09-2004, 04:43 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
It should also print out another line that says what caused the error. Either way, can you check that DirectX 8.0 or above is installed on your computer.

To check, click the Windows Start menu, then Run. Type in "dxdiag" then press enter. A dialog should appear. On the first page of the dialog there will be a field that says "DirectX version:"
Reply With Quote
  #5  
Old 11-09-2004, 04:48 PM
adimov adimov is offline
Member
 
Join Date: Sep 2003
Location: Santa Barbara, CA
Posts: 11
thanx for the help, the problem turns out to be related with the sound card.
alex
Reply With Quote
Reply

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


All times are GMT -7. The time now is 04:28 AM.


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