x


Sound getting deeper

Hey I have someone talking in my game, and it is connected to an audio source. When I play it, the voice gets deeper and deeper how do I stop this?

more ▼

asked Apr 09 '10 at 09:28 PM

DTJ Productions gravatar image

DTJ Productions
57 19 20 25

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

You can access the Audio Manager at Edit-->Project Settings-->Audio; check to see that the Doppler Scale is 1. Not sure if that could be it, but if the doppler effect was exaggerated, I wonder if it might cause something like this.

more ▼

answered Apr 09 '10 at 11:56 PM

Design3.com gravatar image

Design3.com
640 1 1 10

Nah, this will affect doppler for the entire game. Take a look at this one instead:
http://unity3d.com/support/documentation/ScriptReference/AudioSource-velocityUpdateMode.html

Apr 14 '10 at 11:46 AM Nicolaj Schweitz ♦♦
(comments are locked)
10|3000 characters needed characters left

I am not sure, but I think it plays multiple times the same audio file. If you have the audio activated by a trigger, don't activate it onTriggerStay but onTriggerEnter ... or avoid to play it every frame from function Update().

var voiceOver : AudioClip;

function OnTriggerEnter (hit:Collider)
{
     if(hit.gameObject.tag == "speak" )
      {

    audio.PlayOneShot(voiceOver);  

       }

}

drag this .js script in your first person controller and assign a sound in the script from the inspector, make sure that you have an audio source in your controller and add a trigger tagged speak. And it should work.
you might want to add a timer so the sound won't play again if you enter the trigger multiple times. You can do things like that by pressing buttons on your keyboard or activate them when you press a GUI button .

more ▼

answered Apr 09 '10 at 10:34 PM

alexnode gravatar image

alexnode
984 27 32 49

(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:

x1024
x522
x54

asked: Apr 09 '10 at 09:28 PM

Seen: 1056 times

Last Updated: Apr 09 '10 at 09:28 PM