eliminate popping on rapid fire sound


(mightypants) #1

I’ve got a sound for an automatic laser gun, and when it fires in quick succession I get a small popping sound. Are there any tips/tricks to avoid this? I’m firing the FMOD event with soundEvent.start() and I tried adding a soundEvent.stop() (both with STOP_MODE.ALLOWFADEOUT and STOP_MODE.IMMEDIATE) before it it but that didn’t help.


(mightypants) #2

I should add: this is Unity 4, Mac OSX.


(Nicholas Wilcox) #3

If you’re restarting the same instance over and over then you’ll get popping. If you’re laser gun event is a one-shot, trying using the FMOD_StudioSystem.PlayOneShot() function to spawn separate instances.