apps/mixer.git
7 years agoAdd support for handling external sink/source volume change events 55/9155/3
Matt Porter [Thu, 20 Apr 2017 16:49:15 +0000 (12:49 -0400)]
Add support for handling external sink/source volume change events

Subscribes to PA volume change events, updating the local cached
volume levels, and propagating the change to the UI. This allows
changes to sink/source volumes levels from the command line (pactl)
or a master volume control to be reflected in the mixer UI controls.

Change-Id: I1d570dffeab9fcf4b6ba51e4792852b44a6149ca
AGL-Bug: SPEC-549
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoFix source volume setting in PaClient::setVolume 51/9151/3
Matt Porter [Thu, 20 Apr 2017 03:39:07 +0000 (23:39 -0400)]
Fix source volume setting in PaClient::setVolume

Fix error resulting in sources not being found due to searching
the sink cache hash.

AGL-Bug: SPEC-548
Change-Id: Icd5a75af7a5fc2e0e125d96910af034e4d0873a3
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoConvert the sink/source volume caches from a list to hashes 41/9141/4
Matt Porter [Wed, 19 Apr 2017 16:53:55 +0000 (12:53 -0400)]
Convert the sink/source volume caches from a list to hashes

Maintain the cached sink/source volume state in separate hashes
for quick lookup. This will further simplify external volume event
support that will need to update the cache.

AGL-Bug: SPEC-548
Change-Id: I47b8e070318f3992a5343d1753c50baa8c1d9cb3
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoRewrite PulseAudio backend into a threaded class 39/9139/3
Matt Porter [Sat, 15 Apr 2017 13:18:25 +0000 (09:18 -0400)]
Rewrite PulseAudio backend into a threaded class

Converts the Mixer PulseAudio backend from a C library to a PaClient
class which runs in its own QThread.  This faciliates isolation of
PaControlModel updates to the QML thread where they belong. It also
provides the foundation for runtime updates of the model and reuse
of the PaClient class in other apps.

AGL-Bug: SPEC-548
Change-Id: I13c4c220fde2fd4bc4aea2e04f39152a963b5fa0
Signed-off-by: Matt Porter <mporter@konsulko.com>
7 years agoAGL-style PulseAudio mixer app 91/7691/2
Matt Porter [Mon, 19 Dec 2016 18:55:11 +0000 (13:55 -0500)]
AGL-style PulseAudio mixer app

Change-Id: I566050a1a8f241f140523df236de81ab951c1394
Signed-off-by: Matt Porter <mporter@konsulko.com>