Skip to main content

Audio Delay Compensation Calculator

Use our free Audio delay compensation Calculator to learn and practice. Get step-by-step solutions with explanations and examples.

Reviewed by Daniel Agrici, Founder & Lead Developer

Reviewed by Daniel Agrici, Founder & Lead Developer

Formula

Delay (ms) = (Distance / Speed of Sound) x 1000

Where Distance is the path length in meters from the source to the listener, and Speed of Sound = 331.3 + (0.606 x Temperature in Celsius) meters per second. Delay in samples = Delay in seconds x Sample Rate.

Worked Examples

Example 1: Live Sound Delay Tower Alignment

Problem:A delay tower speaker is 30 meters from the main PA system. The ambient temperature is 25 degrees Celsius. Calculate the required delay compensation at 48 kHz sample rate.

Solution:Speed of sound = 331.3 + (0.606 x 25) = 346.45 m/s\nPropagation delay = 30 / 346.45 = 86.61 ms\nDelay in samples = 0.08661 x 48000 = 4157 samples\nAdding 15 ms Haas offset: total delay = 101.61 ms (4877 samples)

Result:Set delay speaker compensation to 86.61 ms (4157 samples at 48 kHz) plus optional Haas offset

Example 2: Studio Monitor Time Alignment

Problem:A near-field monitor is 1.2 meters from the engineer, and a subwoofer is 2.5 meters away. Temperature is 22 degrees Celsius. What delay should be applied to the near-field monitor?

Solution:Speed of sound = 331.3 + (0.606 x 22) = 344.63 m/s\nNear-field delay = 1.2 / 344.63 = 3.48 ms\nSubwoofer delay = 2.5 / 344.63 = 7.25 ms\nCompensation for near-field = 7.25 - 3.48 = 3.77 ms\nIn samples at 96 kHz: 0.00377 x 96000 = 362 samples

Result:Add 3.77 ms (362 samples at 96 kHz) delay to the near-field monitor to align with the subwoofer

Frequently Asked Questions

What is audio delay compensation and why is it important?

Audio delay compensation is the process of adjusting the timing of audio signals to account for propagation delays caused by the distance sound travels through air or processing latency in digital systems. When multiple speakers or microphones are at different distances from a source, sound arrives at different times creating phase cancellation and comb filtering artifacts. Proper delay compensation ensures all audio signals arrive at the listener simultaneously, maintaining clarity and preventing destructive interference. This is critical in live sound reinforcement, studio monitoring, and surround sound systems where precise timing alignment directly affects audio quality.

What is comb filtering and how does delay cause it?

Comb filtering occurs when a direct sound and a delayed copy of the same sound combine, creating a series of peaks and notches in the frequency response that resemble the teeth of a comb. The first notch appears at a frequency where the delay equals half a wavelength, causing complete cancellation. Subsequent notches appear at odd multiples of that frequency. For example, a 1 millisecond delay between two speakers creates notches at 500 Hz, 1500 Hz, 2500 Hz, and so on. Comb filtering makes audio sound hollow, thin, or phasey. Proper delay compensation eliminates comb filtering by time-aligning the signals so they arrive at the listening position simultaneously.

How do I calculate delay in samples for a digital audio system?

To convert a time delay into samples, multiply the delay time in seconds by the sample rate of your audio system. For example, if you need to compensate for a 10 millisecond delay at a 48 kHz sample rate, the calculation is 0.010 seconds multiplied by 48000 samples per second, which equals 480 samples. Most digital audio processors and DAWs allow you to enter delay compensation in either milliseconds or samples. Using samples provides the most precise alignment since the smallest adjustable unit in digital audio is exactly one sample. At 48 kHz, one sample equals approximately 0.0208 milliseconds, and at 96 kHz it is approximately 0.0104 milliseconds.

What is the difference between acoustic delay and processing delay?

Acoustic delay is the time it takes for sound waves to travel through air from a source to a listener, determined by the distance and the speed of sound. Processing delay, also called latency, is the time required for digital audio equipment to process the signal through analog-to-digital conversion, digital signal processing, and digital-to-analog conversion. Both types of delay must be accounted for in a properly aligned audio system. In live sound, acoustic delay from speaker distance is typically 2 to 50 milliseconds, while processing delay from digital consoles and processors can add 1 to 10 milliseconds. Total delay compensation must include both components for accurate alignment.

References

Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy