Acoustic path delay

Convert path distance differences into sound delay, fractional sample offsets and nearest integer sample offsets.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Delay=(path B−path A)/sound speed; sample offset=delay seconds×sample rate.

Paths of 3 m and 12 m differ by 9 m, giving about 26.2391 ms delay at 343 m/s. At 48000 Hz this is about 1259.47522 samples; the nearest integer is 1259.

Assumes the entered sound speed is constant; reflections, temperature gradients and device latency are excluded. Sample rate is an integer from 1–768000 Hz; rounded offsets must stay within the safe integer range.

Frequently asked questions

What does a negative sound delay mean?

The later-entered path is shorter. Keeping the sign distinguishes the correction direction.

Does sound delay include room reflections?

No. Direct-path distance difference is divided by constant sound speed; measured system latency may differ.

How are fractional sound-delay samples rounded?

Both fractional and nearest integer offsets are shown. Exact ties round away from 0, preserving a negative direction.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors