Search Unity

Unity 3D sound problem

Discussion in 'Editor & General Support' started by wrm186, Apr 5, 2011.

  1. wrm186

    wrm186

    Joined:
    Apr 4, 2010
    Posts:
    661
    I have a problem with my 3D sound on Unity. When I create an audio source on any object and then put any song or loop on there it distorts or something.

    What happens is as you get closer to the source it sped up and got a really high pitch, as for moving away it got into a deeper slower pitch, but if stood still it will work just fine.

    Whats wrong? Any help would be great!

    Thank you,
    Wade
     
  2. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    Have you tried making a new project and setting up your sound/scripts?

    It sounds *haha* like the pitch is increasing and decreasing based distance so it might be an attached Audio Filter or maybe you have a script that plays with the pitch ?
     
  3. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325
    Last edited: Apr 5, 2011
  4. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    It's the doppler effect. Check the bypass effects option or make it a 2D sound or set doppler to 0

    EDIT: Beat me to it
     
    Last edited: Apr 5, 2011
  5. wrm186

    wrm186

    Joined:
    Apr 4, 2010
    Posts:
    661
    Okay the doppler level is set to 1. What should it be set to?

    And cant be a 2D sound as I don't know how to make it only a certain distance people can hear it, I only want it to wear the music is playing on a portion of the map and not all.

    Thank you once again,
    Wade
     
  6. Jessy

    Jessy

    Joined:
    Jun 7, 2007
    Posts:
    7,325
    Read my first or second link.
     
  7. wrm186

    wrm186

    Joined:
    Apr 4, 2010
    Posts:
    661
    Wait... sorry saw you said to change it to "0"
     
  8. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748



    ... had too.
     
  9. wrm186

    wrm186

    Joined:
    Apr 4, 2010
    Posts:
    661
    Yes! Thank you! :)
     
  10. wrm186

    wrm186

    Joined:
    Apr 4, 2010
    Posts:
    661
    haha thanks :p
     
  11. k0rt4

    k0rt4

    Joined:
    Mar 19, 2013
    Posts:
    4
    The default value for the Doppler should be "0"