mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
Replace the factor calculation from pcm-alsa.c, which is based on signal *power* ratios, with the fp_factor() calculation that is based on amplitude ratios. Because power changes with the square of amplitude, this means 1 dB of power equals 2 dB of amplitude. Rockbox's volume controls are amplitude-based, so the smallest step size for pcm-alsa was effectively 2 dB. The fp_factor() method supports 0.1 dB steps and is a bit more accurate besides, so it's simply superior in all respects (aside from taking a few more CPU cycles to calculate the factor). Change-Id: I34d143c225d8b5e085cde299fc405f83c13314bf |
||
|---|---|---|
| .. | ||
| arm | ||
| coldfire | ||
| hosted | ||
| mips | ||