I just wonder how to cope with a Producer-Consumer Buffering between two audio devices, taking into account that they are not exactly synchronized. This is, one Audio Device would be slightly faster or slower than the other one.
It is clear that a Lock-Free Ring-Buffer can be inserted between them. But, how to tackle this long-term drifting. Is there any strategy consolidated?
Thank you in advance,