[vlc-devel] [PATCH] directsound: use software gain only when amplifying

Denis Charmet typx at dinauz.org
Sat Sep 21 01:39:17 CEST 2013


Le vendredi 20 septembre 2013 à 11:42:22, Pierre Ynard a écrit :
> This way we get the features of both worlds: from 0% to 100% you
> get quick volume change with no saturation, and you can still get
> amplification over 100%.
> 
> Fixes #9371
> [...]
>
> +    /* millibels from linear amplification */
> +    LONG mb = lroundf( 2000.f * log10f( __MIN( volume, 1.f ) ));
To maintain volume consistency between versions you should keep the
6000. 
I already proposed tis solution but introduce a delay when you are over 100% and when you are going under.
>  
Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list