Hi all,
I’ve been banging my head against this for weeks and i hope someone here can help me.
So essentially i’m trying to record multiple channels from an asio device, split the buffer of interleaved samples into separate buffers for each channel and then send them of in the main thread. Doesn’t sound so hard right?
yeah well i’ve got to the point where everything works but i have a big latency issue. I’m extracting in buffers of 2048 samples and when recording with 48000hz i therefore can’t have latency larger than 50ms or the system will build up latency over time and it gets worse and worse.
my problem is that as soon as i add a second channel to the recording my latency doubles from 40-50ms to 80-100ms which shouldn’t be the case (a small increase yeah, but double?!)
I cant upload .cs files (and i don’t have a registered project in my profile yet where i could upload them) so i’ve added both relevant classes to a gist here
My guess is either i have a bug in how i check if a new buffer is ready or i misconfigured the fmod system in a way that it adds this much latency.
as asio device i’m using the ASIO4ALL driver
I really hope someone can help me since my research project depends on this working
Anyhow, kind regards and happy holidays