We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f393c commit 5b9763bCopy full SHA for 5b9763b
audio/drivers/coreaudio.c
@@ -285,6 +285,10 @@ static void *coreaudio_init(const char *device,
285
if (AudioUnitInitialize(dev->dev) != noErr)
286
goto error;
287
288
+ /* Enforce minimum latency to prevent buffer issues */
289
+ if (latency < 8)
290
+ latency = 8;
291
+
292
fifo_size = (latency * (*new_rate)) / 1000;
293
fifo_size *= 2 * sizeof(float);
294
dev->buffer_size = fifo_size;
0 commit comments