From 992fce9e4aee5adf225f56bd47e7e8741d272731 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 28 Sep 2018 14:24:32 +0200 Subject: [PATCH] Logarithmic volume also for PT8211. --- MicroDexed.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index 23199f9..ac16f1f 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -589,9 +589,9 @@ void set_volume(float v, float vr, float vl) #ifdef TEENSY_AUDIO_BOARD sgtl5000_1.dacVolume(log(vol * vol_left), log(vol * vol_right)); #else - volume_master.gain(vol); - volume_r.gain(vr); - volume_l.gain(vl); + volume_master.gain(log(vol)); + volume_r.gain(log(vr)); + volume_l.gain(log(vl)); #endif }