Question

I am using record function to record audio data. It has to be done this way because I have multiple microphones to be recorded simultaneously and the record function can provide "multithreaded" recording.

n = 10; % length
record(recObj, n);

When I run this, I know recording is happening in the background. However, I want to access each small buffers that the record function uses to pull in the data. I need them so I can do real-time processing on multiple microphone signals. How should I achieve that? Thanks.

Was it helpful?

Solution

I assume recObj is an audiorecorder object. You can call recObj.getaudiodata. This requests the whole data, if this is to mouch data copy the audiorecorder.m and create your own getaudiodata which allows to set the InputStream to a starting position before reading.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top