- Home /
Audio sounds accelerated when starting webplayer???
Hi there, I am current playing around with Unity 3.x to see how fast I can do things. I'm currently making a small Pac-Man clone and when the game starts the sound sometimes/often sounds like its accelerated for the first second or two. I dont know whats wrong, all I do is to say:
audio.play();
on an GameObject with an AudioClip component attached.
I dont stream it, I dont load it, just play it.
Anyone tried this?
Answer by yoyo · Dec 04, 2010 at 07:03 AM
Unity implements 3D audio effects, so the relative position and movement of the audio source and the audio listener affect how it sounds. I had trouble with this and ended up making my audio source and listener stationary, but that's not the best solution. Better to use the Edit > Project Settings > Audio menu, and change the parameters to match the scale of your world.
hmm, I could try this, but the problem dissappears after 1 second when the player starts?
is your camera moving rapidly? maybe avoid the problem altogether and don't play audio for the first 2 seconds?