Multi-channel Matlab Audio
You are not logged in.
I have just successfully build Playrec.
I am wondering what kind of latency can be expected with the loop_back program.
What is the smallest latency anyone has seen and what was the configuration?
I am getting between 1 and 2 seconds on a MacBookPro running Matlab in XP virtual machine under Parallels.
I compiled with ASIO support with the ASIO4All driver.
Thanks,
Rusty
Offline
it depends on the technology you use or it might be in microsecond and it also can be in couple of minutes because latency depends on certain things like program, cpu power, programming, language of program and so on. So you can't guess it out.
Offline
The latency is very variable and machine dependant.
You will find that the loop_back script latency will depend on the sample frequency (Fs) that you specify, but also the pageSize, pageBufCount, and runMaxSpeed settings within the script. Try reducing the pagBufCount - this will reduce the latency, but if you reduce it too much then there will be glitches in the audio. Because Matlab wasn't designed for low-latency audio, there are always going to be compromises so it's just a case of finding the best settings for your machine.
I don't know how good the virtual machine is at handling audio, but depending on what you want to do it might be worth looking into using Octave (which can also use Playrec) natively on the MacBookPro.
Offline