MATLAB: Can we access the audio while recording online using matlab

MATLAB

by using fpga we can do simultaneous tasks like accessing audio while recording. But in matlab, can we do like that? I want to play online while recording.. is it possible with matlab?

Best Answer

I am not sure what "play online while recording" means. You can play and record sounds "simultaneously" with audioplayer/audiorecorder. You cannot access what is being recorded by audiorecorder while it is being recorded. So therefore you cannot play a modified version of your recording as it is being recorded with audioplayer/audiorecorder.
For Windows the data acquisition toolbox will give you a little more flexibility, but the latency will be unknown and variable.
For the best results, you need something based on PortAudio. I recommend the psychtoolbox implementation, even though it comes with lots of unrelated stuff. There are still latency issues, but they are probably as minimal as you can make them without going to specialized hardware.
Related Question