8000 Suspend PulseAudio sinks when they are not used · Issue #5314 · mumble-voip/mumble · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Suspend PulseAudio sinks when they are not used #5314
Closed
@savchenko

Description

@savchenko

Describe the bug
Mumble keeps PA sink awake even when client has its microphone and speakers disabled ("deafened and muted").

Steps to Reproduce

  1. Launch pulseaudio -v and observe its output.

  2. Compare, for example, with mpv or your favourite music player. Start playing, then put it on pause:

    I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.usb-Solid_State_Logic_SSL_2-00.analog-stereo idle for too long, suspending ...
    I: [alsa-sink-USB Audio] alsa-sink.c: Device suspended...
    I: [pulseaudio] core.c: All sinks and sources are suspended, vacuuming memory
    
  3. Close the audio player, try the same with Mumble.

  4. Sink stays open:

    I: [pulseaudio] protocol-native.c: Requested tlength=60.00 ms, minreq=10.00 ms
    I: [pulseaudio] protocol-native.c: Final latency 60.00 ms = 20.00 ms + 2*10.00 ms + 20.00 ms
    

    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 mpv is about 0.5-1%.

Expected behavior

  1. Mumble tells PA to pause the processing when it's not needed.
  2. Ideally, PA/Mumble combination consumes (much) less CPU than 10% of 11th gen i5 :)

Screenshots
N/A

Desktop (please complete the following information):

Additional context
If #5300 is fixed, this might be irrelevant (or at least much less relevant). Modern ALSA does all the mixing and resampling by itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0