Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DTJ Productions · Apr 09, 2010 at 09:28 PM · audiosoundsource

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Design3.com · Apr 09, 2010 at 11:56 PM

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nicolaj Schweitz · Apr 14, 2010 at 11:46 AM 0
Share

Nah, this will affect doppler for the entire game. Take a look at this one ins$$anonymous$$d:
http://unity3d.com/support/documentation/ScriptReference/AudioSource-velocityUpdate$$anonymous$$ode.html

avatar image
2

Answer by alexnode · Apr 09, 2010 at 10:34 PM

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 .

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Audio Not Always Playing 3 Answers

How to stop an Audio Clip without an Audio Source? 1 Answer

Best way to play audio sound effects 1 Answer

3D Sound Max Distance Not Working. 0 Answers

5.1 Channels is backwards in unity (non 3D) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges