From 3678657416e3c81275fd8e89118a584c5bee6af3 Mon Sep 17 00:00:00 2001 From: anders Date: Thu, 14 Nov 2002 09:49:06 +0000 Subject: Printing of max volume on exit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8187 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af_volume.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libaf/af_volume.c') 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; } -- cgit v1.2.3