Skip to content

Adjust Driver Latency

Devin Roth edited this page Jun 2, 2023 · 4 revisions

If you are dealing with a high channel count you may want to modify the driver latency for more stability. Latency is measured in frames or samples. By default the driver latency is set to 0 but could theoretically be set to any number. To calculate the latency in seconds divide LATENCY_FRAME_SIZE by the current sample rate. For example 1024 frames latency divided by a sample rate of 48000 is 0.0213 seconds or 21.3 milliseconds. Driver latency is in addition to any buffer size used by your DAW.

Instructions

1. Modify code

In BlackHole.c change LATENCY_FRAME_SIZE to the desired driver latency in samples.

#define LATENCY_FRAME_SIZE 0

2. Build and Install

Build with Xcode

Clone this wiki locally