[vlc-devel] [PATCH 3/6] win32: add audio events for updating audio button/slider

Jean-Baptiste Kempf jb at videolan.org
Tue Dec 15 22:27:01 CET 2015


On 15 Dec, Daniel Amm wrote :
 +    VP()->get_mp().eventManager().onAudioVolume([this](float vol) {
> +        UpdateVolumeSlider(vol * 100 + 0.5); //+0.5 to prevent rounding imprecisions

Absolutely NO NO NO.


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device


More information about the vlc-devel mailing list