pasuspender does not stop alsa-lib from defaulting to pulseaudio plugin
Bug #944295 reported by
max ulidtko
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alsa-plugins (Ubuntu) |
Expired
|
Wishlist
|
Unassigned | ||
pulseaudio (Ubuntu) |
Expired
|
Wishlist
|
Unassigned |
Bug Description
Steps to reproduce:
1. Run an application continuously playing audio, music player for example.
2. Launch in a terminal: pasuspender speaker-test
3. While 2) is running, launch in another terminal: pasuspender sleep 1, and wait while it finishes.
What happens:
2. a) The usual pulseaudio streams stop playing, which is expected.
b) But the speaker-test produces no output, which is contrary to the expected effect.
3. a) While the first pasuspender instance is still running, the sound from music player resumes, which is not what is expected.
b) Moreover, the "pasuspended" speaker-test pink noise resumes with the music player, too. Which is not what is expected, too.
affects: | pulseaudio (Ubuntu) → alsa-plugins (Ubuntu) |
affects: | alsa-plugins (Ubuntu) → pulseaudio (Ubuntu) |
Changed in pulseaudio (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in alsa-plugins (Ubuntu): | |
assignee: | nobody → YEAHBOY (ariesallic-016) |
Changed in pulseaudio (Ubuntu): | |
assignee: | nobody → YEAHBOY (ariesallic-016) |
To post a comment you must log in.
Speaker-test writes to the default alsa device, which happens to be the alsa-pulseaudio bridge, which explains why you get no output from it, and then when sound resumes you get output.
Consider the following:
pasuspender -- speakertest -Dplug:front
This should work as you expect.
(It would be great if pasuspender disabled the alsa-pulse bridge).
3 a) is kinda obvious, pasuspender was never intended to have multiple copies running, because it's expected whatever you're running under it will lock the sound card exclusively. Making running another copy of pasuspender in parallel something outside of the designers expectations.