jPlayer icon indicating copy to clipboard operation
jPlayer copied to clipboard

Volume slider response is linear

Open MathijsV opened this issue 9 years ago • 2 comments

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.

MathijsV avatar Jan 09 '16 19:01 MathijsV

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.

mdingena avatar Aug 24 '16 11:08 mdingena

This can be closed :) #374 was merged into master in https://github.com/happyworm/jPlayer/commit/823e735554142ed652b6414bdf9706beb8b5945b

mdingena avatar Feb 10 '17 20:02 mdingena