1 #ifndef __lib_driver_audiodynamic_h
2 #define __lib_driver_audiodynamic_h
4 class eAudioDynamicCompression
: public Object
10 unsigned long long dst
;
17 int last_val
[100]; // the last 10 seconds
21 int hyst_low
, hyst_hi
;
22 int current_fast
, current_slow
;
26 static eAudioDynamicCompression
*instance
;
28 static eAudioDynamicCompression
*getInstance()
33 int getCurrent() { if (!enabled
) doPoll(); return current_value
; }
34 void setEnable(int enable
);
35 int getEnable() { return enabled
; }
36 int getMax() { return hyst_hi
; }
37 void setMax(int h
) { hyst_hi
= h
; hyst_low
= h
/ 2; }
39 eAudioDynamicCompression();
40 ~eAudioDynamicCompression();