Playrec - Forum

Multi-channel Matlab Audio

You are not logged in.

#1 2010-02-09 02:02:11

Rusty
New member
Registered: 2010-02-09
Posts: 1

Latency

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

 

#2 2010-04-22 12:34:49

thomcoes
New member
Registered: 2010-04-17
Posts: 3

Re: Latency

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

 

#3 2010-05-29 10:30:18

Rob
Administrator
Registered: 2007-12-23
Posts: 54

Re: Latency

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

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB