diff --git a/libaf/af_volume.c b/libaf/af_volume.c index 8238f06026..370b05662d 100644 --- a/libaf/af_volume.c +++ b/libaf/af_volume.c @@ -59,7 +59,7 @@ inline int from_dB(float* in, float* out, float k) if(in[i]onoff = (int)arg; return AF_OK; + case AF_CONTROL_PRE_DESTROY:{ + float m = 0.0; + int i; + for(i=0;imaxpower[i]); + af_msg(AF_MSG_INFO,"The maximum volume was %0.2fdB \n",10*log10(m)); + return AF_OK; + } } return AF_UNKNOWN; }