Hi,
I’m working on an application where I need to play 2 mp3 file simultaneously in sync.
The files play in sync. There is an intermittent problem though. Every once in a while, with no pattern that I can see, the sounds play out of sync.
This happens
> during playing
>after a pause/play operation
I read up on the adobe bugs site and the issue does seem seem to be listed but not fixed.
http://bugs.adobe.com/jira/browse/FP-82
Also the bug is listed for version 9_0_115_0 but I’ve tried it in 9_0_123 and 10 and the problem still persists.
Would anybody know of a workaround to get to mp3 files to “always” play in sync
Hi, thanks for the reply.
I don’t understand how that helps my problem. The problem I was having was flash intermittently not playing two sounds at the same time.(2 mp3’s for left and right)
if(soundChannelA.position!=soundChannelB.position){
trace("out of sync")
SoundMixer.stopAll()
_position=soundChannelA.position
soundChannelB=soundB.play(_position)
soundChannelA=soundA.play(_position)
}
This is my imperfect solution so far. The code is in a fast timer.
the link i posted is for a class called sound sync, i used it in a dance dance / guitar hero-ish game i did. Basically its a great way to sync your sounds to visuals or to other sounds. Check it out, I can already tell you setTimeout / Timer is too slow when it comes to sound. this is the best i’ve seen for sounds always playing in sync.