Mercurial > mplayer.hg
comparison libaf/af_volume.c @ 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 | 1d75a7ecf3b8 |
children | 14090f7300a8 |
comparison
equal
deleted
inserted
replaced
12640:7513f753af91 | 12641:61f3fce1e933 |
---|---|
110 float m = 0.0; | 110 float m = 0.0; |
111 int i; | 111 int i; |
112 if(!s->fast){ | 112 if(!s->fast){ |
113 for(i=0;i<AF_NCH;i++) | 113 for(i=0;i<AF_NCH;i++) |
114 m=max(m,s->max[i]); | 114 m=max(m,s->max[i]); |
115 af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n", | 115 af_to_dB(1, &m, &m, 10.0); |
116 10*log10(m)); | 116 af_msg(AF_MSG_INFO,"[volume] The maximum volume was %0.2fdB \n", m); |
117 } | 117 } |
118 return AF_OK; | 118 return AF_OK; |
119 } | 119 } |
120 } | 120 } |
121 return AF_UNKNOWN; | 121 return AF_UNKNOWN; |