PDA

View Full Version : "Latency" when Sound is already playing



snoken
June 28th, 2007, 10:00 AM
Just did some simple tests trigging a "click" sound on MOUSE_DOWN. It fires "instantly" when played.

Now try to add a second sound, for instance just a looped bit of silence or other.

If now clicking that same button, the click-sound playback is delayed for ~100msec...
(this on a pc / xp / std soundcard),
gonna do some tests on mac too


This wasn't a problem in flashplayer 7 / 8.

This is kind of bad since simple stuff like playing interface feedback sounds on top of background music, sound effects over another in a game etc. looks/sounds like sh*t now since it gets delayed...

Have been looking around a bit but haven't found anyone else on the net complaining about this..!?

fetus
August 22nd, 2007, 11:48 PM
(bumping)

I'm having the same issue. I'm trying to trigger the sounds at an interval (attempting to create "music"), but there is inconsistent latency. At least if the latency was consistent, the relative timing would still be correct.

I'm loading an mp3 via Sound and calling sound.play(). If the sound is already loaded, then I'm just calling sound.play(). I was hoping for some better performance here...

fetus
August 23rd, 2007, 03:45 PM
Does no one care or does no one know? :)

I'm confused as to why this new super fast VM would not want to play sounds in a timely manner...

spielereinz
August 24th, 2007, 03:25 AM
Does no one care or does no one know? :)

I'm confused as to why this new super fast VM would not want to play sounds in a timely manner...

Heh .. don't be .. windows it self can't even do that with out auxiliary drives ;)