[pulseaudio-discuss] Flat volumes and programmatic volume access (again)
Arun Raghavan
arun at accosted.net
Tue Oct 20 20:57:35 PDT 2015
On Tue, 2015-10-20 at 10:24 +0200, Xabier Rodríguez Calvar wrote:
> Hi,
>
> O Lun, 19-10-2015 ás 15:19 +0530, Arun Raghavan escribiu:
> > * Streams set a PA_STREAM_DISABLE_FLAT_VOLUME (or
> > PA_STREAM_PROG_VOLUME_CONTROL or whatever) on the streams for which
> > they want the new behaviour.
>
> > * I'd also like to add a policy module to allow blacklisting
> > specific
> > applications, and forcing this behaviour on them. This will need a
> > protocol update to set a stream flag after the stream is connected.
> >
> > * For legacy apps that are not covered by the blacklist we could
> > add
> > an
> > environment variable that makes all stream and sink-input volume
> > -related bits to use the new behaviour.
>
> Just thinking out loud and you have probably thought about this
> before
> and discarded it, but just in case. What about instead
> of PA_STREAM_DISABLE_FLAT_VOLUME we have PA_STREAM_ENABLE_FLAT_VOLUME
> and consider all apps to have flat volumes disabled by default.
>
> This would require definitely more work from the app side though not
> that much. Maybe some api could be implemented in GStreamer to ease
> setting the attribute at the right moment.
It's quite a lot of work, since all clients (whether they're using
GStreamer or not) would need to be updated. More importantly, from an
API perspective most clients shouldn't care about this, and only the
ones that do should set the flag.
Cheers,
Arun
More information about the pulseaudio-discuss
mailing list