Record Two Channels from Different Sound Cards
To record audio independently from two different sound cards, with a microphone connected to each:
Call audiodevinfo to list the available sounds cards. For example, this code returns a structure array containing all input and output audio devices on your system: