I am capturing audio at 16 bit little endian,16khz and frame duration is 60ms.
Now while mixing for audio conference, I can divide every participant's sample's (audio short array) by participant count and add all (to avoid clipping). But the resulted sound is low and not smooth due to different voice level. How can I apply auto gain control here to take the audio of participant's to a target level first and then after mixing apply a calculated adaptive gain so the voice becomes smooth and does not get clipped?