r/audioengineering • • 5d ago

Software ASIO to ASIO bridge

I'm probably going to get laughed at but since I found developing this project an interesting endeavor, why not get some feedback from smart people.

Long story short, I've been practicing guitar and since I'm on a budget, I got a simple Scarlett Solo. I had an old Amplitube license laying around and thought to myself, why not use it. Eventually I realized that I cannot simply get the audio via one ASIO device (aka Solo) and set the output to another (In my case it was ADI-2 DAC and now K17 R2R).. basically where i have my headphones and speakers connected via pass-through. I rarely use windows and on linux it's not a problem whatsoever (nor on a mac to my understanding). Anyway, after fiddling with ASIO4ALL, Kordasio, ASIOLinkPro (some repack from github) and some others, I got pretty much nowhere. With ASIO4ALL I got a super unnoying delay that makes playing live pretty unacceptable (even with buffer set to 64).

Anyway, if you are still reading this, I got fed up and tried to write a direct bridge between two ASIO devices that wouldn't be a total crap, especially compensating for drift. tl;dr, I built "SplitASIO" that achieves pretty much this. You select your input device and your output device (as long as they support the direction you need).

Useful? Useless? Ideas?

Thanks in advance!

9 Upvotes

14 comments sorted by

1

u/8-Seconds-Joe 5d ago edited 5d ago

I mean this is interesting, but why didn't you try VoiceMeeter or FlexAsio? And why don't you use the outputs on the Scarlett for monitoring your guitar through Amplitube or send the Scarlett's output signal to the Fiio the analogue way??

And what's that thingamajig clocking them via a Raspberry Pi??

1

u/kennycoder 4d ago

Raspberry pi? PI drift controller i mean Proportional-Integral (PI) Control Systems.

Flexasio and voicemeter suffer the same delay as I explained.

As for not using analog Outputs, well, i have different headphones and speakers connected to my dac/amp and it doesn't forward the audio that comes from Line-In..so has to be digital.

1

u/8-Seconds-Joe 4d ago

PI drift controller

I see, silly me.

it doesn't forward the audio that comes from Line-In

It does. The Fiio K17 r2r forwards signals from RCA or 4.4 BAL to the HP/speakers outputs. It adds a bit of latency there as well, which Fiio doesn’t publish anywhere, but I'm curious why you never tried this, jumped straight into building a driver and claim the Fiio "doesn’t forward audio".

Btw did you replace the RME with the Fiio or did you add the Fiio?

Also:

I'm on a budget

No, you're not. You could get a Quad Cortex for the sum total of the devices you mentioned.

And why did you get one of the lousiest interfaces for your input signal in the first place? Pairing this up with the quality output gear you own is like pulling a luxury caravan with a unicycle.

Not that this diminishes your Github project, if it works as described. An ASIO bridge with minimal latency and stable clocking is something many have been missing in their Windows toolset for a long time.

This is built with AI, I assume?

2

u/kennycoder 4d ago

I know I have a fairly unconventional setup... Since I'm only starting my guitar/bass journey I didn't want to spend much on the audio interface, hence went with the Solo (i know, there are much better options).

Currently I have active speakers on the S/PDIF out from Fiio K17 and if I plug anything on the line-in, it's not picked up since it doesn't have ADC.

As for ADI-2 DAC to K17 swap, honestly, the only reason for the change was that K17 has a standalone networking module that allows me to play music directly from my NAS plus a very powerful EQ compared to ADI (yes, i know, controversial..).

In regards to AI, no, not much is made with AI except for the README, some code comments , installer and windows registry. I'm a software engineer since 2+ decades and I'm still not fully sold on AI coding, at least in its current form (except for being an assistant).

2

u/8-Seconds-Joe 4d ago

I see. Didn't think this was human-coded, that's cool, man!

Thanks again for the project and good luck with your git/bass journey!

If you're already fed up with Amplitube, look into NAM. And look into current black friday deals by NeuralDSP, Nembrini, ML Sound Lab and Audio Assault.

Looking forward to try SplitASIO soon!

2

u/radioom_app 5d ago

Nice, drift is the part that usually kills these. How are you compensating for it, adaptive resampling or just dropping/duplicating a sample when the ring buffer gets too far from the midpoint? The resampler route sounds cleaner but the control loop needs to be slow and smoothed, otherwise you get audible pitch wobble on sustained guitar notes. Also curious what round-trip you measured at 64 samples compared to ASIO4ALL.

3

u/kennycoder 5d ago

I implemented continuous adaptive resampling and it's done in two stages. First is PI drift controller that smooths the ring buffer fill level with a 0.5s exponential moving average (so USB packet jitter doesn't wobble the pitch) and then something called a "4 point catmull-rom cubic hermite resampler", heavily inspired by https://github.com/GStreamer/gst-plugins-base/blob/master/gst-libs/gst/audio/audio-resampler.c

I didn't measure the round-trip but with ASIO4ALL it was ~300ms (hard guess) and with my approach I can't hear any delay, so i'd say somewhere in the vicinity of 50ms. More scientific measurements are indeed due.

1

u/Evid3nce Hobbyist 4d ago

Useful? Useless?

Lots of people may want to use this kind of bridge to livestream the output of their DAW to OBS/Discord. So you might want to advertise it from that perspective in those kinds of subs/forums.

AsioLinkPro works for me on Win10, but it's on borrowed time since the author passed away a decade ago and it will never be updated. It's also difficult to set-up and there's no clear instructions/manuals (I got it working eventually, and it's works well with very low latency. I don't think it handles any syncing/clocking). Like you, the other options didn't work well on my system.

3

u/kennycoder 4d ago

Ok so this took me down the rabbithole of how Amplitube works vs something more serious like Reaper, Ableton, Cubase, etc..

Anyway I'm thinking of implementing 2 ways of doing output routing: 1) mirroring basically main output (1/2) -> mostly useful for my Amplitube usecase and then 2) Having a separate aux bus, mostly for Reaper, Ableton and other proper DAWs (where one can mix what goes where).

Then it's either creating a tap aka Virtual ASIO input and/or mirroring to WASAPI (so one can use it in discord via VB-audio virtual cable.)

I'm gonna have something today.

2

u/kennycoder 4d ago

Interesting! I never thought of livestreams. Let me fiddle a bit and see how I can this work with OBS Studio/Discord.

2

u/kennycoder 4d ago

Ok. re-released with output routing functionality. LMKWYT

3

u/OmniFace 5d ago

If this allows you to aggregate devices like ASIO4ALL without the latency then that’s awesome!

It’s certainly possible to do. I have two Presonus Quantum 2626’s and their software links them.

It sucks that windows doesn’t allow this automatically

1

u/theProgramm 11h ago

Useful? Useless? Ideas?

Indeed quit usefull! I was searching for something like that just yesterday, today i decided to not work on anything usefull while beeing on call, and i still managed to solve that problem :D

One use-case i have is the one mentioned in another comment, i have some instruments coming into a reaper session from a Wing, and want to stream it to obs and/or a video-mixer and the latency added by voicemeeter is annoying.

Another one is doing online meeting stuff, i usually have some webex/teems meetings two audio interfaces, for input of the room speakers (people) and output to the room speakers (acoustic emitter). It seems that i can add reaper in between them now (to at least add a bit of eq and compression) without having feedback loops or adding a hardware mixer.

Anyway: big probs for making it open source, depencency-free and small. Nice piece of work!

0

u/Atlabatsig 5d ago

Ok, great story, well told. But I'm also intrigued because I've actually been wondering how to split a signal. My motivation is quite obscure - an issue with latency, but I'm looking fwd to trying this out. So thanks !!