Sync two separate audio devices (input to output)

Hello JUCE forum,

I would like to play record audio and play it back to a different device in real time. This means that I have two different IO callbacks that need to be synced. Incoming audio needs to be buffered to some kind of fifo and played back on the output stream. Different sample rates and buffer sizes need to be dealt with.

I saw there is a “AudioIODeviceCombiner” juce class (hidden in juce_mac_CoreAudio.cpp). It looks like this is written to solve this kind of problem.

Does any of you have any ideas or thoughts on this?

Thank you,