changeset 12641:61f3fce1e933

remove the latest use of log10 in favor of the better af_to_dB helper function, patch by Reimar Doffinger
author alex
date Fri, 25 Jun 2004 15:26:59 +0000
parents 7513f753af91
children 9d869614f4bb
files libaf/af_volume.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_volume.c	Fri Jun 25 15:21:43 2004 +0000
+++ b/libaf/af_volume.c	Fri Jun 25 15:26:59 2004 +0000
@@ -112,8 +112,8 @@
     if(!s->fast){
       for(i=0;i<AF_NCH;i++)
 	m=max(m,s->max[i]);
-      af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n",
-	     10*log10(m));
+	af_to_dB(1, &m, &m, 10.0);
+	af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n", m);
     }
     return AF_OK;
   }