roc-streaming / roc-pulse

Roc Toolkit modules for PulseAudio.
https://roc-streaming.org
GNU Lesser General Public License v2.1
8 stars 2 forks source link

PulseAudio sink suspend on idle problem #20

Open gavv opened 6 years ago

gavv commented 6 years ago

module-suspend-on-idle from PulseAudio 4.0 suspends Roc sink when it stays idle for some time (no sink inputs connected to it) and resumes when a new sink input appears. For some reason, the process of resuming takes pretty much time, up to 5 seconds.

I wasn't able to reproduce it with module-suspend-on-idle from PulseAudio 11.1. On that version, PulseAudio never suspends Roc sink.

cmdwiggles commented 4 years ago

A crude fix to this can be implemented by outputting an inaudible tone from pulse audio. I added this line to my pulse audio config:

load-module module-sine frequency=1

gavv commented 4 years ago

@cmdwiggles thanks for info

gavv commented 4 years ago

As reported it #421, it's also reproducing on Pulseaudio 13.99.1.

Workaround suggested by @berglh: https://github.com/roc-streaming/roc-toolkit/issues/421#issuecomment-698169015

ghostBot commented 3 years ago

Have same issue, unloading module-suspend-on-idle or increasing timeout work for me. pulseaudio-13.0, roc-toolkit-0.1.5 Resuming can take few minutes after suspending. I thought that PA modules just didn't work the first time because started playing media after loading the modules when sink was already suspended