x


Music Distortion and Volume

Hello everyone, i have run into yet another problem >_<

Well i have a radio in my game and i have a song it plays set to 3D sound, but when i move closer to it the song speeds up and when i move away it slows down, any way to get rid of this? And also the music can be heard from across the map which isn't supposed to happen so is there a way to set the sound range?

Thanks in advance

more ▼

asked Nov 29 '09 at 04:41 AM

Will gravatar image

Will
408 8 10 19

Just a small comment on the terms: "Distortion" in audio usually refers to amplitude distortion (see also http://en.wikipedia.org/wiki/Amplitude_distortion ). That happens when you have a signal that is "louder" than what the sound system supports (I guess the most well-known example of "wanted distortion" are heavy metal guitars; but you also get distortions frequently with cheap speakers). So, what you're actually asking about is a "pitch-change" (just mentioning that because it took a while until I actually understood your question ;-) ).

Nov 29 '09 at 11:35 AM jashan
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

The speeding up and slowing down is a result of having the Doppler Factor set to a value different from 0 (actually, it's an increase and decrease of the sound's pitch - but pitch and "speed" are equivalent in sampled audio-files). You can change this in menu: Edit/Project Settings/Audio. Doppler is actually a nice effect and you might just want to tweak it so that it sounds more realistic (unless you need control over the playback speed of your sound clip for synchronization reasons).

How the sound changes volume by distance is controlled via the Rolloff Factor in the Audio Source property inspector. The minimum and maximum volume are controlled via "Min Volume" and "Max Volume", so maybe you have a "Min Volume" greater than zero.

See also the documentation: Audio Source and Audio Manager

more ▼

answered Nov 29 '09 at 11:29 AM

jashan gravatar image

jashan
10.1k 25 40 116

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1027

asked: Nov 29 '09 at 04:41 AM

Seen: 2002 times

Last Updated: Nov 29 '09 at 04:41 AM