aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-10-09 09:42:35 -0700
committerChris Robinson <[email protected]>2019-10-09 09:42:35 -0700
commit57cdac3368e45cdb27a7d4ab699e5045d016dd3c (patch)
tree6c238ef44961542672e7569e90d56cbb4d0e2a8b /alc
parent404f3e2d089bc00e81065621f80c5f5f9fc68949 (diff)
Create the initial PulseAudio stream corked
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/pulseaudio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 71cf4b21..63d9d8e9 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -814,7 +814,8 @@ void PulsePlayback::open(const ALCchar *name)
mContext = connect_context(plock);
- pa_stream_flags_t flags{PA_STREAM_FIX_FORMAT | PA_STREAM_FIX_RATE | PA_STREAM_FIX_CHANNELS};
+ pa_stream_flags_t flags{PA_STREAM_START_CORKED | PA_STREAM_FIX_FORMAT | PA_STREAM_FIX_RATE |
+ PA_STREAM_FIX_CHANNELS};
if(!GetConfigValueBool(nullptr, "pulse", "allow-moves", 1))
flags |= PA_STREAM_DONT_MOVE;