# HG changeset patch # User anders # Date 1037267346 0 # Node ID b56fd4b1738d6fb9b2bb10e19264be9448983d3e # Parent aae2d081864ae5762a1b7ef3fe00b4fff8e451d3 Printing of max volume on exit diff -r aae2d081864a -r b56fd4b1738d libaf/af_volume.c --- a/libaf/af_volume.c Thu Nov 14 09:47:46 2002 +0000 +++ b/libaf/af_volume.c Thu Nov 14 09:49:06 2002 +0000 @@ -59,7 +59,7 @@ 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; }