WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-12-2007, 12:21 PM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Stuttering sound

I need to play a wav file while an animation is running. The problem
is that if I "addAudio" the sound and issue the .play() command the
animation hesitates briefly while the disk is accessed to load the
sound file every time play is called.

However, if I use playsound() to play the sound it pauses the animation
only the first time. After that it doesn't.

Is there some way to similarly pre-cache the addAudio sound so it
doesn't access the disc every time play() is called?
Reply With Quote
  #2  
Old 06-13-2007, 01:36 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
There is currently no way to pre-cache an audio object. Usually the OS will cache files for faster disk access. How big is the audio file?
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 03:26 AM.


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