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

Daniel Amm da2424 at t-online.de
Wed Dec 16 19:02:32 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,

Is roundf(vol * 100) ok?



More information about the vlc-devel mailing list