FS#21757 - [kdemultimedia-kmix] add pulseaudio support

Attached to Project: Arch Linux
Opened by Tom Gundersen (tomegun) - Saturday, 20 November 2010, 11:04 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 23 November 2010, 08:58 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

PulseAudio is about to move into [extra], but (to the best of my knowledge) there are no work underway to add PA support to the KDE packages. This is one of two issues I am aware of.


Scenario:

A user is running a KDE session and some programs using PulseAudio. He/she wants to adjust the volume using kmix.

Observed behaviour:
KMix exposes the ALSA mixers. However, these are abstracted by PA and will be behaving unintuitively, be confusing and missleading (probably useless).

Expected behaviour:
KMix should expose the PulseAudio mixers.

Solution:
Remove "-DWITH_PulseAudio=OFF" from the kdemultimedia package build, add pulseaudio as makedepend and optdepend.
See my AUR package: <http://aur.archlinux.org/packages.php?ID=40214>.

Result:
This will make kmix expose PA mixers when PA is running and ALSA mixers otherwise. It will not affect the other packages in the kdemultimedia package.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 23 November 2010, 08:58 GMT
Reason for closing:  Implemented
Additional comments about closing:  kdemultimedia-kmix 4.5.3-2
Comment by Jan Alexander Steffens (heftig) - Saturday, 20 November 2010, 12:09 GMT
Does this create a hard dependency to libpulse? I.e. it will not run without libpulse being installed.
Comment by Tom Gundersen (tomegun) - Saturday, 20 November 2010, 14:39 GMT
Jan,

Thanks for asking the question. I had not checked this. There is in fact a hard dependency on libpulse.

The dependencies are:
depends='libpulse'
optdepends='pulseaudio'

So libpulse must be installed, but if pulseaudio is not installed kmix exposes the ALSA mixers as before.

Is the added dependency on libpulse acceptable? The situation is the same for the phonon package (I'll open a separate report).

I updated my AUR package with the correct dependencies: <http://aur.archlinux.org/packages.php?ID=40214>.
Comment by vnoel (kaouete) - Sunday, 21 November 2010, 12:00 GMT
EDIT: ok, sorry, I completely misread, just forget what is written next.

Just to add something to the discussion, I think that it is not an "hard dependency" as Jan think it:

Normally, you could put PA as a makedepends, but it is not needed to be installed for kmix to run (as you say it actually: "but if pulseaudio is not installed kmix exposes the ALSA mixers as before" :)

I hope this request will be accepted :)

Loading...