jPlayer
jPlayer copied to clipboard
Volume slider response is linear
The default behaviour of the volume slider in jPlayer is linear. This results in the slider having nearly no effect in the "loud" end, while it is very sensitive in the "soft" end.
A much more natural behaviour is obtained by using a logarithmic slider, which is equally sensitive at each position. The logarithmic function can in this case also be approximated by using a fourth or fifth power. See this website for more background information on this subject.
I think it should be easy to implement, and the volume control will behave in a much more natural way.
I didn't know about linear vs. logarithmic. That's pretty useful! I noticed how the loud end of the bar was insensitive to changes. I just submitted PR #374 to implement this suggestion.
This can be closed :) #374 was merged into master in https://github.com/happyworm/jPlayer/commit/823e735554142ed652b6414bdf9706beb8b5945b