Hey all
The Pd main window has an indicator for audio I/O errors that flashes
red whenever it detected a buffer underrun. Is that information exposed
in a way it can be accessed in a patch?
If not, would that be a worthwhile feature? I think: yes.
A patch using audio input for recording could immediately tell if the
recording is garbage, for instance.
My current use case is for clocks: When a drop-out is detected, it is a
good moment for re-syncing the clock as the steadiness is lost anyway
at that moment and the drop-out is basically the only reason for clock
drifts.
The poor man's drop-out detection (and what I do now) is to compare
[time] and [realtime]. However, the delta between them varies depending
on the configured buffersize. Only if the delta is larger than the
buffersize, one can be sure that a drop-out happened. Having that info
reliably from Pd directly would be definitely better.
Roman