Fornoth / spotify-connect-web

MIT License
436 stars 66 forks source link

Volume sounds best when using a logarithmic scale #115

Open karlvr opened 7 years ago

karlvr commented 7 years ago

This commit adds a cubic scale to the correct playback volume, which results in a more linear sounding volume response. You can confirm this by watching the slider on alsamixer, which now moves linearly where it didn’t before, as the alsamixer slider accounts for this logarithmic volume scale.

3onyc commented 7 years ago

If I recall correctly this depends on the sound card, for me it's currently a linear volume increase.

Aragur commented 7 years ago

Working perfectly for RaspberryPi (1st generation and 3rd generation)