Bug#697121: vlc: sudden very loud sound to cause hearing demage
Rémi Denis-Courmont
remi at remlab.net
Sat Jun 7 05:18:49 UTC 2014
Le vendredi 6 juin 2014, 19:32:30 Felipe Sateler a écrit :
> > Unfortunately, VLC cannot get the PulseAudio volume until after audio
> > playback starts. There is no way to fix this on VLC side: there is no API
> > in libpulse to get the volume of an application until after a sink
> > input/stream is created.
> What about pa_context_get_sink_info_by_name? With that you can get the
> volume of the default sink by specifying NULL as the sink name.
That will only work the first time you use a media player ever. Afterward,
PulseAudio will remember a volume for the media player role, that is distinct
from the default sink volume - with default settings.
In other words, this does not work.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the pkg-pulseaudio-devel
mailing list