Pauldeboer
08-15-2007, 04:03 PM
Hi,
I am working on a Flash movie that uses serveral sound files. I need very accurate timing so I use
the onSoundComplete technique from Frank P. Baumgartner as described in http://www.actionscript.org/resources/articles/159/1/Advanced-Flash-MX-Sound-Timing/Page1.html
It works fine but there is one problem. There are circumstances where the audio clock of the movie is stopped for some time and so audio delay occurs. For instance when resizing or moving the movie window. Or when another program is started while the movie is playing. I discovered the stops in the audio clock have to do with the use of the screen (monitor or touch screen). There seems to be NO relation with CPU usage and it happened in the same way on several PC's an PPC's. My question is: Is there somehow a solution that the audio clock of the movie keeps running when the screen is used? Is there a priority setting for this?
Two simple examples considering this problem:
1. When a onSoundComplete function starts AND at the same time the movie window is resized with the mouse, then this function may be delayed up to 0.5 sec.
2. When a onSoundComplete function starts AND at the same time another windows program is started and the window of this program appears, then this function may be delayed up to 0.5 sec.
This is not acceptable is it?
Thanks for your reply!
I am working on a Flash movie that uses serveral sound files. I need very accurate timing so I use
the onSoundComplete technique from Frank P. Baumgartner as described in http://www.actionscript.org/resources/articles/159/1/Advanced-Flash-MX-Sound-Timing/Page1.html
It works fine but there is one problem. There are circumstances where the audio clock of the movie is stopped for some time and so audio delay occurs. For instance when resizing or moving the movie window. Or when another program is started while the movie is playing. I discovered the stops in the audio clock have to do with the use of the screen (monitor or touch screen). There seems to be NO relation with CPU usage and it happened in the same way on several PC's an PPC's. My question is: Is there somehow a solution that the audio clock of the movie keeps running when the screen is used? Is there a priority setting for this?
Two simple examples considering this problem:
1. When a onSoundComplete function starts AND at the same time the movie window is resized with the mouse, then this function may be delayed up to 0.5 sec.
2. When a onSoundComplete function starts AND at the same time another windows program is started and the window of this program appears, then this function may be delayed up to 0.5 sec.
This is not acceptable is it?
Thanks for your reply!