mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
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
This commit is contained in:
+2
-2
@@ -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
|
|||||||
|
|
||||||
|
|
||||||
/* 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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user