WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   vizrecorder (https://forum.worldviz.com/showthread.php?t=245)

adimov 11-09-2004 04:19 PM

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)

farshizzo 11-09-2004 04:29 PM

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:"

rosanna 11-09-2004 04:33 PM

it says: error, could not initialize direct sound

farshizzo 11-09-2004 04:43 PM

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:"

adimov 11-09-2004 04:48 PM

thanx for the help, the problem turns out to be related with the sound card.
alex


All times are GMT -7. The time now is 12:48 AM.

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