Commit 2dc604ec authored by David Reid's avatar David Reid

PulseAudio: Always use the PA_STREAM_ADJUST_LATENCY flag on streams.

This should fix the following puplic issues:

  * https://github.com/mackron/miniaudio/issues/106
  * https://github.com/mackron/miniaudio/issues/187
parent 27a7fea8
...@@ -21446,7 +21446,7 @@ static ma_result ma_device_init__pulse(ma_context* pContext, const ma_device_con ...@@ -21446,7 +21446,7 @@ static ma_result ma_device_init__pulse(ma_context* pContext, const ma_device_con
/* Connect after we've got all of our internal state set up. */ /* Connect after we've got all of our internal state set up. */
streamFlags = MA_PA_STREAM_START_CORKED | MA_PA_STREAM_FIX_FORMAT | MA_PA_STREAM_FIX_RATE | MA_PA_STREAM_FIX_CHANNELS; streamFlags = MA_PA_STREAM_START_CORKED | MA_PA_STREAM_ADJUST_LATENCY | MA_PA_STREAM_FIX_FORMAT | MA_PA_STREAM_FIX_RATE | MA_PA_STREAM_FIX_CHANNELS;
if (devCapture != NULL) { if (devCapture != NULL) {
streamFlags |= MA_PA_STREAM_DONT_MOVE; streamFlags |= MA_PA_STREAM_DONT_MOVE;
} }
...@@ -21540,7 +21540,7 @@ static ma_result ma_device_init__pulse(ma_context* pContext, const ma_device_con ...@@ -21540,7 +21540,7 @@ static ma_result ma_device_init__pulse(ma_context* pContext, const ma_device_con
/* Connect after we've got all of our internal state set up. */ /* Connect after we've got all of our internal state set up. */
streamFlags = MA_PA_STREAM_START_CORKED | MA_PA_STREAM_FIX_FORMAT | MA_PA_STREAM_FIX_RATE | MA_PA_STREAM_FIX_CHANNELS; streamFlags = MA_PA_STREAM_START_CORKED | MA_PA_STREAM_ADJUST_LATENCY | MA_PA_STREAM_FIX_FORMAT | MA_PA_STREAM_FIX_RATE | MA_PA_STREAM_FIX_CHANNELS;
if (devPlayback != NULL) { if (devPlayback != NULL) {
streamFlags |= MA_PA_STREAM_DONT_MOVE; streamFlags |= MA_PA_STREAM_DONT_MOVE;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment