Bug#697121: vlc: sudden very loud sound to cause hearing demage

Felipe Sateler fsateler at debian.org
Fri Jun 6 23:32:30 UTC 2014


Control: tags -1 = moreinfo

On Tue, Feb 05, 2013 at 10:58:04PM +0200, Rémi Denis-Courmont wrote:
> reassign 697121 libpulse0
> tags 697121 + upstream
> thanks
> 
> Le mardi 1 janvier 2013 17:22:57, fermat a écrit :
> > It is a bug of pulseaudio because it use a default setting that
> > applications don't have independent volume control. otherwise the volume
> > whill not grow to 147% but rather 20%*147% = 29.4%.
> > 
> > It is apperently a bug of vlc because it displays a very misleading current
> > volume 100% rather of 20%. Even if some adjust to the volume from 100% to
> > 95%, it will cause the volume suddenly jumps from 20% to 95%.
> 
> This is a little bit improved in VLC 2.1: when audio is being played, VLC will 
> automatically get the volume from PulseAudio. But before playback is started, 
> the volume control will still display garbage.
> 
> 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.

If the sink has PA_SINK_FLAT_VOLUME, then set the initial volume to the
sink volume, otherwise set it to 100%. Could that work?


-- 
Saludos,
Felipe Sateler



More information about the pkg-pulseaudio-devel mailing list