summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libaf/af_volume.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af_volume.c b/libaf/af_volume.c
index 9468ade76a..f879b3de2c 100644
--- a/libaf/af_volume.c
+++ b/libaf/af_volume.c
@@ -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;
}