- Home /
audio is distorted at speed
i have a car, wiith a horn, and this script:
function Update () {
if (Input.GetKey(KeyCode.H)) {
if(!audio.isPlaying) {
audio.loop = true;
audio.Play();
}
} else {
audio.Stop();
}
}
but when i drive at high speeds, the sound becomes very distorted. How can i fix this?
Answer by Wolfram · Aug 08, 2010 at 09:01 PM
Edit->ProjectSettings->Physics(or was it Audio?)->DopplerFactor
However, that parameter is global, so it will affect all your sounds and all your scenes. If you make sure your models are in meters (e.g., the car should be around 3-5 worldcoords long), the doppler effect should be realistic.
If that does not help you, we'd need some more info about your problem: What kind of distortion? Does the sound change pitch? Is it too loud? Is it choppy? Does your car have a driving sound and does that have the same problem? etc.
the sound gets distorted in pitch, but very fst, like computerized sounds, almost a wobble in the audio. THe driving sound does the same thing but it is a lot less noticeable.
Have you tried changing the DopplerEffect? Is your camera moving relative to your car? What's the scale of your car?
i haven't tried the doppler effect. The camera moves relative to the car, and the car is to scale with unity (1 unit = 1 meter)
Your answer
Follow this Question
Related Questions
Sounds are shaky at high speed. 0 Answers
How I can change the speed of a song or sound? 5 Answers
Activate sound without Pro filters 0 Answers
3D Audio Source plays choppy/poping in web player (Video) 1 Answer