PDA

View Full Version : Stuttering sound


Jerry
06-12-2007, 11:21 AM
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?

farshizzo
06-13-2007, 12:36 PM
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?