View Single Post
Old 08-25-2018, 06:50 AM   #98
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,859
Default

Actually after further study I think this combined device is a bad idea

At least on Linux I think there would be an issue. The 2 cards wouldn't be initialized synchronously, so even if they sync the DACs, and the audio stream is synced, they wouldn't trigger the interrupts at the same time. This would lead to either of 2 scenarios (depending on how alsa works).

1. Card 1 has filled it's buffer and triggers the interrupt, but card 2 still hasn't filled it's buffer. This might lead to audio drop outs in the data stream from card 2.

2. ALSA waits until both cards have triggered their interrupts, this would lead to less time to process the audio before the early card has filled it's buffer and triggers the interrupt again. This means reaper would have less time to process the audio.

I found some information indicating that the above is true for your cards, I don't know if it's true for all cards, or if it's true on windows/osx too.

This might explain why you see nonsymetrical latency on windows too, say 64/128, meaning that the driver double buffers the output to work around the problem, and would also explain why the recorded audio isn't always aligned properly. Doesn't explain karbomusic's issue with a rme+adat though, so maybe I'm wrong

I've tried to make a startup script that could be used in the reaper device settings, but it's got race conditions, and without an option to run a script after JACK has started but before reaper connects to the server, it's unlikely that reaper would be able to autoconnect to all channels.

I've whipped up the following script to start it all up. If you want to start the whole enchilada up by clicking on an icon, you can do that in your OS, you can even give it the reaper icon.

Code:
#!/bin/sh
/usr/bin/jackd -S -P80 -dalsa -dhw:M2496 -r44100 -p64 -n2 -Xseq &
/usr/bin/sleep 1
/usr/bin/zita-a2j -dhw:M2496_1 &
/usr/bin/a2jmidid -e &
reaper
You'll have to make it executable by running chmod 755 start-reaper

Enjoy!
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote