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

Jean-Baptiste Kempf jb at videolan.org
Wed Dec 16 09:41:37 CET 2015


On 15 Dec, Daniel Amm wrote :
> > 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.
> 
> You mean the rounding imprecisions? How should it handled instead?

Use casts or whatever.

With my kindest regards,

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


More information about the vlc-devel mailing list