Pulseaudio: allow steam being suspended during export

Multimedia / Ardour - Robin Gareus [gareus.org] - 22 November 2020 20:41 UTC

When exporting long sessions with freewheeling, pulseaudio may meanwhile suspend the corked audio device. The "FAIL_ON_SUSPEND" option then prevents ardour to uncork it after export, and the audio-backend is halted.

###

diff --git a/libs/backends/pulseaudio/pulseaudio_backend.cc b/libs/backends/pulseaudio/pulseaudio_backend.cc
index 17d4288a7e..5ebb1f398e 100644
--- a/libs/backends/pulseaudio/pulseaudio_backend.cc
+++ b/libs/backends/pulseaudio/pulseaudio_backend.cc
@@ -297,8 +297,9 @@ PulseAudioBackend::init_pulse ()
/* https://freedesktop.org/software/pulseaudio/doxygen/def_8h.html#a6966d809483170bc6d2e6c16188850fc */
pa_stream_flags_t sf = (pa_stream_flags_t) (
(int)PA_STREAM_START_CORKED
+#if 0 /* may happen during freewheel export */
| (int)PA_STREAM_FAIL_ON_SUSPEND
-
+#endif
| (int)PA_STREAM_NO_REMAP_CHANNELS
| (int)PA_STREAM_NO_REMIX_CHANNELS
| (int)PA_STREAM_EARLY_REQUESTS

80e3c191e4 Pulseaudio: allow steam being suspended during export
libs/backends/pulseaudio/pulseaudio_backend.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

  • Share