Search Unity

Audio Multiple AudioSources from a single multichannel audio file

Discussion in 'Audio & Video' started by keez-duyves, Aug 9, 2019.

  1. keez-duyves

    keez-duyves

    Joined:
    May 25, 2015
    Posts:
    3
    Hi dear fellow Unitiers,

    Does anyone know a way to play a multichannel audio file to multiple audioSources, so each channel has it own audioSource and can be placed on a different location in the scene ?

    I know I could separate each channel in a separate audiofile and sync start all these in separate AudioSources, but with 12 channels of audio I get some sync issues.

    I am trying to make a conversation between 6 characters in VR.

    Thanks,
    Keez
     
  2. JLF

    JLF

    Joined:
    Feb 25, 2013
    Posts:
    139
    You might be better to go with separate Audio Clips, I'm not sure that there's a way to play different channels of an audio clip through different audio sources.

    To solve your sync issues, if you trigger the Audio using PlayScheduled, and not Play, it should stay in time. Assuming you're not doing that already?