var deviceInfo = deviceInfos[0];
var config = new CriLipsSamplerForAtomMic.MicrophoneConfig();
config.deviceName = deviceInfo.deviceName;
config.numChannels = deviceInfo.maxChannels;
config.samplingRate = deviceInfo.maxSamplingRate;
bool result = atomMicSampler.ConnectMicrophone(config);