mirror of
https://github.com/mumble-voip/mumble.git
synced 2026-03-03 00:46:56 -05:00
Suspend PulseAudio sinks when they are not used #2324
Labels
No labels
GlobalShortcuts
Hacktoberfest
accessibility
acl
asio
audio
bonjour
bsd
bug
build
certificate
ci
client
code
documentation
external-bug
feature-request
gRPC
github
good first issue
help wanted
help-needed
ice
installer
linux
macOS
needs-ckeck-with-latest-version
needs-more-input
overlay
positional audio
priority/P0 - Blocker
priority/P1 - Critical
priority/P2 - Important
priority/P3 - Somewhat important
priority/P4 - Low
public-server-registration
qt
recording
release-management
server
stale-no-response
stale-support
support
task
test
theme
translation
triage
ui
windows
wontfix
x64
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mumble-mumble-voip#2324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @savchenko on GitHub (Nov 10, 2021).
Describe the bug
Mumble keeps PA sink awake even when client has its microphone and speakers disabled ("deafened and muted").
Steps to Reproduce
Launch
pulseaudio -vand observe its output.Compare, for example, with
mpvor your favourite music player. Start playing, then put it on pause:Close the audio player, try the same with Mumble.
Sink stays open:
This results in an excessive CPU usage and unnecessary memory reservation. Former is (much) more of a problem as for some reason running Mumble makes PA eat ~10% CPU. For comparison, playing audio via
mpvis about 0.5-1%.Expected behavior
Screenshots
N/A
Desktop (please complete the following information):
masterwith https://github.com/mumble-voip/mumble/pull/5307 applied.Additional context
If https://github.com/mumble-voip/mumble/issues/5300 is fixed, this might be irrelevant (or at least much less relevant). Modern ALSA does all the mixing and resampling by itself.
@Krzmbrzl commented on GitHub (Nov 11, 2021):
Related to the high CPU usage: #4177 and #1092
In terms of this request itself: I think this could be a (partial) duplicate of #1089 which was implemented for PulseAudio in #171 but reverted again in #4633, because this has caused quite a few issues due to the way the audio system is currently implemented.
The gist of it is: The audio system needs to be refactored and redesigned before something like this is possible.
Given that we already have #1089 (and the other linked issues), I think this issue here does not really describe a separate issue. Therefore, I'll close this in favor of the other issues.