Say the listener is to the left of a sound source, the right speaker should have a higher volume than left.
I tired get metering info, but perhaps because the sound source is a mono file it only has one channel for the rms reading. Out of the 32 channels, only the first channel has reading.
I also tried using getMixMatrix but couldn’t seem to get it working. If this is the right path, is there an example I can refer to?
The mix matrix is a 2D array of floats used by ChannelControl and DSPConnection to map input channels (columns) to output channels (rows) - it isn’t related to metering.
By default, the mix matrix should be an identity/unit matrix that maps a given input channel only to its corresponding output channel:
and so on. You can attenuate the signal of a given mapping by specifying a value between 0 and 1, amplify it with a value above 1, and/or additionally invert the signal by using a value below 0. Mix matrices also allow you to downmix from a lower amount of input channels to a higher amount of output channels, or upmix with the inverse opposite.