EARS Bridge
An app that connects a headphone test jig to Dirac Live.
Sole developer
The public alpha (v0.4.0) is verified on Windows 11.
Project dates, tools, and platform
- Built
- June 2026 to now
- Software
- C++20, JUCE 8, Catch2
- Runs on
- Windows 11
Dirac needs one microphone input for each sweep
Jig clock
Cable clockdrift
Signal Dirac gets
–
Both earswith sound leaked from the other ear
Timing between test sounds
–
DriftsDirac rejects the measurement
Dirac expects one microphone; the EARS jig has two.
Mixing the two microphones adds sound leaking between the ears.
Two clocks drift apart, so Dirac rejects the measurement.
EARS Bridge sends one calibrated ear with steady timing.
Microphone mixing and clock drift
Dirac Live builds a correction filter from test sweeps that one calibrated microphone records. The miniDSP EARS has a microphone capsule in each ear, and each capsule has its own factory calibration.
Mixing the two capsules gives Dirac the wrong signal. Open-back headphones leak sound into the other capsule, so a mix folds that leakage into every sweep. The jig and the virtual cable to Dirac also run on separate clocks. If the timing drifts from sweep to sweep, Dirac rejects headphone captures as "imprecise".
Each ear is calibrated and sent separately
Dirac receives only the left ear during its test.
Dirac receives only the right ear during its test.
My app selects and calibrates the ear Dirac is measuring.
Per-ear calibration and the signal path
miniDSP makes the jig, and Dirac makes Dirac Live. EARS Bridge connects the two products.
EARS Bridge captures both ears and applies each ear's calibration as a minimum-phase inverse filter. In the default Auto per-ear mode, it follows Dirac's left-then-right sweep and forwards only the ear that Dirac is measuring. A virtual audio cable carries that signal to Dirac as its microphone.
A lock-free, drift-correcting sample-rate converter joins the two clocks. During a sweep, it holds one fixed ratio, so every sweep has the same timebase. The calibration filters rebuild on a background thread when a file or the sample rate changes.
Timing and audio checks protect each measurement
Sent to Dirac
–
One earper test sound
- Left ear, then right ear
- Mixes marked "not for Dirac"
Timing in a test sound
–
Heldone fixed rate per sound
Jig
Cable
Audio rate
–
Checkedagainst the rate Windows uses
- Rate asked for = rate in use
- Unsure: check marked approximate
Dirac error 600007
600007Dirac can't open the cable
Fixedwith one click
- Dirac set to shared mode
Network use
–
1 requestper launch, to check for updates
- Never downloads or installs
- A setting turns it off
The app never mixes the ears for Dirac.
Excess drift marks a measurement invalid.
The app checks the audio rate Windows uses.
One button switches Dirac to shared mode for error 600007.
The app's only network use is an optional update check.
The app marks measurements invalid when timing exceeds its limits.
Timing, audio-rate, and update checks
Never mix the two ears for Dirac. Auto per-ear is the default and the only mode that works with Dirac. The mixing modes, such as average and sum, stay available for other tools, and the app labels them "not for Dirac".
Keep the conversion ratio fixed during a sweep. The converter normally corrects drift on every audio block. During a sweep it freezes the ratio and lets buffer headroom absorb the drift. If the drift outruns the headroom, the capture is marked invalid. The app never retimes a capture silently.
Check the audio rate Windows uses. To learn whether Windows resampled the EARS stream, the app compares the requested sample rate with the rate Windows actually runs the device at. When it can't prove the stream is untouched, it shows "clip detection approximate".
Set Dirac to shared mode for the virtual cable. Dirac opens its recording device in exclusive mode by default, and the standard virtual cable has no exclusive format. The result is Dirac error 600007. One button sets Dirac's own shared-mode switch for the user.
Use the network only to check for updates. The only network request is one call per launch to GitHub's public releases API. The app shows an update link and never downloads or installs anything. A setting turns the check off.
The audit found clipping reported as clean
What the clipping audit changed
- A clipped test soundReported as cleanMarks it invalid
- Broken samplesNot checkedMarks it invalid
- Part of the run checkedThe whole runOnly Dirac's test sound
- Timing correction in a test soundAdjusted all the timeHeld still
- Audio format change in a runNot detectedDetected, marks it invalid
Automated tests
- 62unit-test files
- 2systems they run on: Windows and macOS
Recorded release checks required every test to pass.
I fixed each blocking finding in the clipping audit.
Recorded checks: 62 test files on Windows and macOS.
The audit led to stricter checks for invalid measurements.
Clipping audit findings and validation
The app reports whether any clipping reached Dirac. In June, a read-only audit tested every code path behind that report. Parallel reviewers traced each path to a file and line, and separate verifiers tried to disprove each finding. I fixed each blocking finding and kept the audit in the repository.
| Finding | Before | Now |
|---|---|---|
| A clipped sweep | Still reported as clean | A confirmed clip invalidates the capture |
| NaN or infinite samples | Not checked | Invalidate the capture |
| Checked window | The whole Start-to-Stop run | Only Dirac's sweep |
| Converter ratio in a sweep | Adjusted every block | Frozen. A forced correction invalidates |
| Format change during a run | Not detected | Detected. Invalidates the capture |
Guidance flags, such as a low level or a possible Windows resample, warn without invalidating. The recorded CI setup ran 62 unit-test files on Windows and macOS and required the suite to pass before release.