AudioTrack.setVolume() takes a linear amplitude value, but human hearing is logarithmic — a linear 0-1 slider sounds like all the volume is crammed into the bottom quarter of the range. Squaring the slider value (amplitude = linear²) spreads perceived loudness evenly across the full slider travel. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||