audio - playing and recording with two microphones simultaneously matlab -


i try play white noise , record @ same time 2 microphones connected same sound card. using wavplay , wavrecord simultaneous record , working single microphone. don't know how add second microphone code, tried adding second wav record plotted first record result. hope explain problem , can help.

    a= randn (1,44100);     b = zeros (1, length (a)');     c= [a;b];     wavplay (c',44100,'async');     r = wavrecord (length (c),44100,1,'int16'); 

this 1 mic , working. can't add second mic in code. in advance

i don't think wavrecord supports multiple devices. it's been deprecated in favor of audiorecorder.

audio recorder takes additional argument audio device

recorder = audiorecorder(fs,nbits,nchannels,id)

you can id audiodevinfo command, see docs.

if run trouble devices, this article may help.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -