Individual L and R audio channel volumes

Hi,

Is there a way to access the volume of the individual L & R master mixer audio channels?

I’m looking to add an accessibility feature so the player can independently change the volume of each audio channel, in order to compensate for Asymmetrical Hearing Loss.

Thanks.

You can use the panStereo


@sacredgeometry Hi, thanks for the reply. The pan stereo will work on individual audio sources. I’m looking to individually adjust the volume level of each channel of the whole audio output. I’m open to a C# solution…if anyone knows how.

Ok it was as simple as this: (Just remember to attach this script to the same place where the audio listener is attached)

void OnAudioFilterRead(float[] data, int channels)
{
    for (int i = 0; i < data.Length; i += channels)
    {
        data <em>= data _* leftVol; // left channel_</em>

data[i + 1] = data[i + 1] * rightVol; // right channel
}
}