matlab - Microphone Device ID -
i have 3 usb microphones plugged macbook air via usb hub. in audio midi aggregated devices , selected aggregate device input computer. however, 'audiorecorder' not picking device id.
audiodevinfo ans {1x1 struct} {1x1 struct}
and it's naming internal microphone. there way set device id each individual microphone?
you can determine if have correct name device using
mic1 = audiodevinfo(1, 0) mic2 = audiodevinfo(1, 1) mic3 = audiodevinfo(1, 2)
where first argument output/input (0 or 1) , second argument device id. can address mics separately, example using
audiorecorder(fs, nbits, nchans, id)
and replacing id
1
mic2
if plug mic in or out of computer may need restart matlab recognized.
Comments
Post a Comment