attachSound popping
- Started
- Last post
- 11 Responses
- jpea
anyone have any experience with a sound 'popping' in flash if you start it multiple times in a short period? i have a nav that use the attachSound start() function and when you move over them fast they start distorting/popping.
- alloyd0
example?
Maybe try mySound.stop() and then mySound.start() .....
Might also want to check that there isn't a little sound wave at teh very beginnging of the audio file...
- jpea0
tried that already. it's like it doesn't like it when i start another instance of the same sound when one's currently playing. to try to remedy it, i created multiple attachSound instances, and used start() using these seperate ones, but it didn't help.
- acescence0
is the sound loud? is it possible you're just running out of headroom playing multiple sounds simultaneously?
- skelly0
even with multiple sound objects, if you start one sound, the other one doesn't stop. you have to stop all sounds before starting one, i believe.
when you roll over all buttons, it's probably making a popping sound because the sound is playing over itself, it tends to distort and crackle when that happens.
- caseyc0
Calling mySound.stop() first should remedy it, if not maybe wait a frame or something. Could you post up an fla?
- jpea0
thanks for the help folks. i tried all of these options and still no-go. it always pops on my MBP and it sometimes does on my PC, which lends me to think it's a hardware issue (since flash player doesn't use any hardware sound acceleration like directX or Core Sound).
- jpea0
- skelly0
try using:
mainNav.stopAllSounds()
instead of:
mainNav.stop()
- skelly0
that made it a lot less distorted for me.
- jpea0
ok, so i took it into a sound editor and normalized it and now the pops gone. guess it was the actual sound that the was the problem. now let me go and bang my head against the wall for overlooking that.
- StratusGD0
Also, were you actually using the 'export' command, or previewing it, and using the SWF that the preview generates? I'd had alot of problems with the preview sound popping that go away with an actual 'export.'