[an error occurred while processing this directive]
|
#define A_COEFF ((unsigned short)(65536.0*0.95));short min, max; // global
min = (min*A_COEFF) >> 16;
max = (max*A_COEFF) >> 16;
if (sample < min) min=sample;
if (sample > max) max=sample;amplitude = max-min;
E-mail: info@telesys.ru