Hi and thanks for your replies!
I’ve tried with the
use_real_time and indeed it changes timing, but along the lines of what @samaaron has mentioned: first part of the audio is missing. I haven’t measured exact amount, but 360 millis sound about right.
Regarding the setup I’m using (sorry I haven’t mentioned this important information in my original post). I’m running Sonic Pi 3.1.0 on Windows 10 version 1809 (build 17763.529). I’m using Synchronous Audio Routing (http://sar.audio/) audio driver to create virtual audio devices and use them with my spl Crimson USB audio interface, running in ASIO mode. I’m recording the sound from the virtual device dedicated to Sonic Pi in Reaper DAW, and triggering the start of recording with the OSC message from Sonic Pi, as described in the original post.
I’m not sure how can I test any other setup, because I don’t have any other software which can both play some sound and send OSC commands, besides Sonic Pi. But I’d be ready to give this a try, if you could provide some guidance. But from what I understand, the SAR shouldn’t introduce any additional latency but what’s coming from the audio interface, and my Crimson is set up with 12 ms output latency and 2ms input latency:
Please let me know if I can provide any help investigating this. I’m not extremely experienced in digital audio though, so please bear with me.