Search Unity

[SOLVED] How to make audio come out of left/right equal volume, without making it a 2d sound?

Discussion in 'Audio & Video' started by ArachnidAnimal, Aug 20, 2015.

  1. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,835
    Hello,

    Is there a way to make an audio source volume come out of the left/right channels equally, without making it a 2d sound?

    The 2d sounds seem to ignore distance away from the listener/audio source. I want dampen the sound volume per distance, similar to 3d sound, but force the volume on both channels to be equal. It cant seem to be able to do this.

    Thanks
     
  2. aihodge

    aihodge

    Joined:
    Nov 23, 2014
    Posts:
    163
    Perhaps try using a mono 2D sound, then in a script updating the volume of the AudioSource as a function of its distance from the AudioListener.
     
    ArachnidAnimal likes this.
  3. ArachnidAnimal

    ArachnidAnimal

    Joined:
    Mar 3, 2015
    Posts:
    1,835
    woops. I just figured it out. I needed to set the "spread" of the audio source to 50%.
    I left it at 3d sound.
     
    why78901 and aihodge like this.