mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
remove the latest use of log10 in favor of the better af_to_dB helper function, patch by Reimar Doffinger
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12642 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
38bc7729f5
commit
d04df91cbe
@ -112,8 +112,8 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user