Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help !!! Sound playing in a delay of about 5 second....!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all !!!

I am doing a project, it's style is something like the powerpoint presentation. In this project, some buttons would be displayed on the stage and whenever the users click any one of it, a sound( .wav format, in Win98 OS ) file corresponding to the button is played.

I imported the wave files as external links and using one cast member to represent the wave files. When users click on the buttons, the member's filePath property is changed correspondingly, and then I used puppetSound to play the files, each of it about 1Mb in size.

It works, but, there is an non-tolerable delay between each click and sound plays. The delays are about 5 second and within this delay time, the system hangs( giving no response to other applications) until the sound plays.

I doubt that I am doing it in a wrong way the director take away too much memory from the system... Anyway, I suppose that is there any other approach for doing that?? Since this project is running out of time, and this is the last part to be finished. PLEASE help ..........

Any idea is welcome.

Thanks in advance. ^^
 
In the preload options on the actual wave file you can see the pre load settings but only after clicking on the list view mode to change how it looks


what is your pre load idle set to ?, when a cast member is set to any of the pre load idle commands it compresses it thus the decompression when playing and the pausing, so when it is set to 0 it means that is does not compress, therefore does not have to decompress, and do not get any pausing.
Other than that i would try putting the khz of the sound down to the smallest possible say 22khz or lower.

Hope that helps?

Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top