Mixer: optimize peak value measuring functions
Merge pull request #991 from diizy/stable-1.1

Mixer: optimize peak value measuring functions