how to use two audio input device simultaneously?

hi guys! now i need to get input from two audio input devices. i modified ofSoundStream so that i can specify the deviceID like this:

void ofSoundStreamSetup(int deviceID, int nOutputChannels, int nInputChannels, ofBaseApp * OFSA, int sampleRate, int bufferSize, int nBuffers);

so now i can choose to use a specified audio device. but i don’t know how to use two devices simultaneously. i try to call ofSoundStreamSetup() twice. but that doesn’t work. the programme crashes.
could anybody help me with this?

p.s. i found a post here: RtAudio multiple audio input
but seems that information isn’t enough for me :frowning:

take a look at this post, i think it’s what you need: