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/ _______________________________________________ pkg-pulseaudio-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-pulseaudio-devel

