audio mixer: refactoring, gain algorithm modified

Signed-off-by: Samuel Casa <samuelcasa9@gmail.com>
audio mixer: refactoring

Signed-off-by: Samuel Casa <samuelcasa9@gmail.com>