WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-24-2020, 12:25 PM
nom nom nom nom is offline
Member
 
Join Date: Jan 2017
Posts: 3
Sound freezes Vizard simulation

Hi,

After reinstalling my Windows, suddenly the sound play in Vizard causes a quick freezing of the simulation. This occurred in both VR and non-VR settings as well as my own code and the example code (I used the below code from the documentation). I use Vizard 5.

I checked the framerate. The framerate is at 75 Hz, then when the sound is played, it suddenly drops to about 20 Hz for a second then recovers back to 75 Hz. This interference from the sound only occurs in Vizard and not other programs, so I assume this is something related to Vizard.

Code:
import viz
import vizact

viz.setMultiSample(4)
viz.fov(60)
viz.go()

viz.clearcolor(viz.SKYBLUE)

#add localized sound
duck = viz.addAvatar( 'duck.cfg' )
duck.setEuler([180,0,0])
duckMove = vizact.sequence( [vizact.moveTo([0,1,22],speed=2), vizact.moveTo([0,1,0],speed=2)], viz.FOREVER)
duck.addAction(duckMove)

quack = duck.playsound( 'quack.wav', viz.STOP )

vizact.onkeydown( 'q', quack.play, viz.LOOP )
I wish I could attach a video, but I guess I can't. Does anyone know why this occurs?
Reply With Quote
  #2  
Old 10-05-2020, 04:56 PM
kennethkarthik kennethkarthik is offline
Moderator
 
Join Date: Jul 2018
Posts: 8
Hi nom nom,

I'm not able to recreate this issue in Vizard 6. Let me try it out with Vizard 5 and let you know if there's a fix. Until then, feel free to use the Vizard 6 free download to test out your scripts without the frame drops.
Reply With Quote
Reply

Tags
sound freezing


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
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 11:46 AM
How to pause the Vizard simulation? 4711 Vizard 4 03-18-2010 05:45 PM
3D sound in Vizard whj Vizard 2 07-28-2009 01:42 PM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 12:13 PM
3D sound in vizard virtmeg Vizard 1 01-10-2005 10:06 AM


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


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