Apply logarithmic scaling

To match perceived loudness
pull/842/head
probonopd 2 months ago
parent 46b7174e47
commit 8bcd92e8b3
  1. 3
      src/minidexed.cpp

@ -1793,6 +1793,9 @@ void CMiniDexed::setMasterVolume (float32_t vol)
else if (vol > 1.0) else if (vol > 1.0)
vol = 1.0; vol = 1.0;
// Apply logarithmic scaling to match perceived loudness
vol = powf(vol, 2.0f);
nMasterVolume = vol; nMasterVolume = vol;
} }

Loading…
Cancel
Save