Search Unity

audio multichannel manager

Discussion in 'Scripting' started by sandro, Mar 30, 2011.

  1. sandro

    sandro

    Joined:
    Jan 8, 2011
    Posts:
    5
    Hi,
    anyone knows if it's possible to manage via script each single channel in a multichannel audio track?

    I have a 4 channel audio track and I'm trying to use it as a multitrack audio file for manage audio properties separately for each channel. For istance to turn on and off a channel, dynamically set the loudness.

    I really don't know how to manage this kind of file in unity!

    I just did it by using 4 separately tracks but is quite inefficient and sometimes i miss the sync between the tracks.

    Any suggestion is well appreciated!

    thanks

    here is a 4 channel demo track
    View attachment $4ch_audio.zip
     
  2. Nikovich

    Nikovich

    Joined:
    Jul 10, 2010
    Posts:
    69
    This is something I'm also trying to figure out. The only idea I've had so far is to play two synchronous audio files on two game objects at the same time and to convert one's volume to 0 when I want to silence it, but I don't see that as a viable option. I won't be able to guarantee they both play at the same time.