#ifndef __SYSTEMCONFIGSTRUCT_H__ #define __SYSTEMCONFIGSTRUCT_H__ #include #include /* ============================================================================= * 基础配置结构体 * ============================================================================= */ /* 不一致判断选项 */ const QMap g_mapNotConsistency = { {1, "在其他报警时,不一致不报警且后台不进行不一致对比"}, {2, "如果主通道、其他通道,二者一个噪音,一个非噪音,直接判定为不一致"}, {3, "不一致对比不进行静音、反相等处理"} }; /* 录音模式 */ const QMap g_mapRecordModes = { {1, "ASIO"} }; /** * @brief 基础配置结构体 * */ struct BaseConfig_t { QString strServerIP; /* 服务器IP地址 */ int nRecordMode; /* 录音模式, ASIO等 */ QString strDriverName; /* 驱动名称 */ int nNotConsistency = 1; /* 不一致判断选项,默认是1 */ bool isEnableMultiCore = false; /* 是否启用多核处理 */ bool isEnableDebugLog = false; /* 是否启用调试日志 */ bool isClearDirSystemOn = false; /* 启动服务时是否清空历史文件夹 */ bool isUsingSoundCardName = false; /* 是否使用声卡名称,确定频道配置的各个通道 */ bool operator==(const BaseConfig_t &other) const; }; /* ============================================================================= * AI对比 * ============================================================================= */ #endif // __SYSTEMCONFIGSTRUCT_H__