Patch for pulseaudio-6.0 / Volume Change through pactl
Jakob Fink
jfink at gmx.at
Fri Apr 24 13:30:00 UTC 2015
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. ;)
Regards,
Jakob
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-src_pulsecore_core-util.c
URL: <http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20150424/353a704b/attachment.c>
More information about the freebsd-gnome
mailing list