Search Unity

Audio Making an audio game in Unity

Discussion in 'Audio & Video' started by BoyHiddenInTheLeaves, Sep 22, 2017.

  1. BoyHiddenInTheLeaves

    BoyHiddenInTheLeaves

    Joined:
    Sep 21, 2016
    Posts:
    2
    I'm trying to make an audio game where by players can tell the position of an object listening to whether the right or left speaker is playing the audio.

    The idea is:

    If the object is on the left hand side

    Play the audio of that object through the left speaker

    Right hand side = right speaker

    How would I do this in Unity?
     
  2. grizzly48

    grizzly48

    Joined:
    Jan 30, 2017
    Posts:
    3
    I think that Unity is already doing that for you.
    The "SoundSource" is a Component on a GameObject.
    So is the "AudioListener" (in most cases on the same GameObject as the Camera).
    If the "SoundSource-GameObject" is to the left of the "Camer/AudioListener-GameObject", then the sound should come from your left. I haven´t tested that, but that´s the way I understood it.