GSoC/GCI Archive
Google Code-in 2010 VideoLAN

VLC volume control redesign: find the right formula

completed by: Jeppe Hallgren

mentors: Jean-Baptiste Kempf

Indepentently to the Volume widget redesign, we have to find the right binding between the volume widget abscissa and the volume.

Find the function, where x goes from 0 to 100 (widget abscissa) and the volume percentage between 0 and 400%

 

f(0) = 0

f(100) = 400

Mapping to ]-Y dB; 6dB[ might be a good idea. Y to be defined.