13
0

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.
This commit is contained in:
Robin Gareus 2020-11-22 21:39:32 +01:00
parent da4d1cd779
commit 80e3c191e4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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