HD-Rec uses the Library interface too. I am the author, btw.

The Library Interface works fine.
Just the Device interface is dropping some audio, which results in missing audio fracments and crackling, very anoying. I checked the sourcecode of AHI, and the device interface usess the library interface to fill the buffers, so I am pretty sure now that this must be a bug in ahi.device code. Is Martin Blom still active? Any other developers of AHI around here?
Anyway, the example for device recoring in ahidev.lha looks strange to me and ill-designed.
First, you fill a buffer with DoIO() and then call subsequent SendIO(). There is no real double buffering, there is always a small gap between receiving a buffer and sending the next one. So AHI must store audio for an undefined time, since it does not know how long it will take me after I got the last Request till I can send the next one.