From 80e3c191e412be7da5e0d05856e14f2f208b3035 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 22 Nov 2020 21:39:32 +0100 Subject: [PATCH] Pulseaudio: allow steam being suspended during export 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. --- libs/backends/pulseaudio/pulseaudio_backend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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