dx-packages team mailing list archive
-
dx-packages team
-
Mailing list archive
-
Message #22805
[Bug 1368827] Re: [FFe] [touch] indicator needs to be able to control volume per audio role
<slangasek> rsalveti: so the idea here is that the sink-input-by-media-role:$foo are only present if we're on touch?
<rsalveti> slangasek: they can be part of the desktop, but the dbus module that export that interface to the indicator is only available on touch
<rsalveti> the stream can have basically any role, as the app is responsible for setting that up, we just have a small set of supported ones on touch
<rsalveti> and this additional work was to enable this extra dbus interface so it can be used to change volume per roles
<rsalveti> so if the dbus interface and the needed roles are not available in the stream-restore internal database, it'll act like today (only controlling the main sink)
<rsalveti> if the dbus interface is available, and the required set of roles are available in stream-restore, then the volume will reflect on the current active role (or alert by default)
<slangasek> ok. what package provides this new dbus interface?
<rsalveti> slangasek: pulse itself, but that's disabled by default, and the config enabling that is part of ubuntu-touch-session
FFe approved.
--
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-sound in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1368827
Title:
[FFe] [touch] indicator needs to be able to control volume per audio
role
Status in “indicator-sound” package in Ubuntu:
New
Bug description:
Dear Release Team,
I would like to request a FFe for indicator-sound, in order to deliver
the remaining features needed for Ubuntu Touch.
From the Sound design for Touch (https://wiki.ubuntu.com/Sound#Phone),
we need to change the default behaviour of the indicator in order to
be able to change volume per audio roles, and not only the master
volume.
On touch the master volume will always be at 100%, and each media role
will have its own volume values, so we can have a different volume
level for multimedia, ringtone and alarms.
This can be done using the streamrestore module in pulseaudio (via another dbus entry point that is only enabled on touch atm):
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/StreamRestore/
There's also a sample script on python that can be used to set/get volume per roles:
https://raw.githubusercontent.com/jusa/pulseaudio-utils/master/pasr.py
And the current roles supporter by touch are: multimedia, alert, phone
and alarm.
This change is touch specific as it needs a combination of configs
that are available in ubuntu-touch-session for it to be used
(different code path that only gets used on touch).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1368827/+subscriptions
References