Patch for pulseaudio-6.0 / Volume Change through pactl
Ting-Wei Lan
lantw44 at gmail.com
Sat Apr 25 06:28:42 UTC 2015
於 五,2015-04-24 於 15:24 +0200,Jakob Fink 提到:
> Dear Maintainers,
>
>
> I recently started to use pulseaudio. I am using the pactl tool to
> change volume in some scripts.
>
> There is a bug only concerning freebsd in the pulseaudio source: in
> pulsecore/core_util.c only locale.h in included. xlocale.h is missing.
>
> This leads to an undefined return value in strtod_l, which is used to
> convert the volume string taken from the commandline into a double,
> using the currently set locale.
> This double is then used unchecked to set the volume, which leads
> pulseaudio to amplify the output by a few thousand percent and nearly
> blow my speakers (and my eardrums) in the process.
>
> I retraced the bug to this function and made the attached patch. On my
> system, it fixes the issue. It would be great if you could include it
> in the ports tree to prevent countless deaf freebsd users in the
> future. ;)
It is nice to see the patch. Are you going to send the patch to the upstream so
users who compile pulseaudio from the upstream git repository can also get the
fix?
>
>
> Regards,
> Jakob
> _______________________________________________
> freebsd-gnome at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe at freebsd.org"
More information about the freebsd-gnome
mailing list