Hi,
for a project I need to implement a custom player, which needs to be able to load multiple AC3 files as tracks and mix them using a linear mixer according to gains delivered by another module. The mixing algorithm is quite simple and follows the following formula for three tracks
output value = gain 1 * input value 1 + gain 2 * input value 2 + gain 3 * input value 3
where gains are 0.33 when each of the tracks should be equally loud since the output value must not exceed 1.0.
For now I used AVFoundation with multiple AVPlayerNodes and AVAudioMixerNode(s). The issue is that I don't know how exactly the mixer works. So what I actually need is to write a custom mixer node or any other solution to achive the desired outcome. Is this actually possible using AVFoundation or do I need to use another framework ?
Thank you and best regards Stefan