jplayer / jPlayer

jPlayer : HTML5 Audio & Video for jQuery
http://jplayer.org/
Other
4.6k stars 1.47k forks source link

Volume slider response is linear #346

Open MathijsV opened 8 years ago

MathijsV commented 8 years ago

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.

mdingena commented 7 years ago

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 commented 7 years ago

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