public int GetCurrentMicDev(byte[] device)//该函数用于获取当前麦克风设备 { try { LogManager.SystemLog.Debug(string.Format("Start UC_SDK_GetCurrentMicDev")); int iRet = UCInterface.UC_SDK_GetCurrentMicDev(device); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("Start UC_SDK_GetCurrentMicDev error {0}", iRet)); return(iRet); } LogManager.SystemLog.Debug(string.Format("End UC_SDK_GetCurrentMicDev")); return(iRet); } catch (Exception ex) { LogManager.SystemLog.Debug(ex.ToString()); return(-1); } }