[linux-audio-dev] |||| Gain/Peak indicator

Steve Harris S.W.Harris at ecs.soton.ac.uk
Sat Jun 28 10:40:00 UTC 2003

Peak amplitude is just that - the largest abs sample value since you last
read it.

RMS is calculated by summing sqaured samples over some period of time then
taking the sqrt of the mean.

Limiters and compressors are much trickier.

On Mon, Jun 23, 2003 at 05:50:08 +0300, Ralfs Kurmis wrote:
> Hi to developers
> I'm search for realtime sound and peak gain indicator (db) algorithms and 
> formulas.
> My first idea is all 16 bit absolute sound_sample_values in time interval  
> t1...t2  compare with ethalon sine wave 
> ( where ethalon sine wave  amplitude is 32000  and lenght/2 is  t2-t1 )
> Also for sound limiter (compressor) algorithms .

More information about the Linux-audio-dev mailing list