/// <summary> /// 初始化盒子 设置相关配置 /// </summary> public static void init() { BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_BUSY, 10); //修复 意外远程挂机 lineToSpk(0); //初始化线路声音到耳机 关闭 因为来电有干扰声音 很刺耳 BriSDKLib.QNV_SetDevCtrl(VoipIndex, BriSDKLib.QNV_CTRL_DOMICTOLINE, 1); //打开麦克风到电话线 BriSDKLib.QNV_SetDevCtrl(VoipIndex, BriSDKLib.QNV_CTRL_LINEOUT, 1); //打开线路输出功能 BriSDKLib.QNV_SetDevCtrl(VoipIndex, BriSDKLib.QNV_CTRL_DOPLAYTOSPK, 1); //打开播放的语音到耳机 BriSDKLib.QNV_SetDevCtrl(VoipIndex, BriSDKLib.QNV_CTRL_PLAYTOLINE, 1); //打开播放的语音到线路 BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_AM_MIC, 0); //获取插在设备上的麦克风增益大小// BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_AM_SPKOUT, 10); //设置插在设备上的耳机音量等级大小 BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_AM_LINEOUT, 15); //设置播放语音到线路的音量等级大小// BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_AM_LINEIN, 7); //电话线路信号强 BriSDKLib.QNV_SetParam(VoipIndex, BriSDKLib.QNV_PARAM_AM_DOPLAY, 15); createDirectory(crmRoot); createDirectory(Utils.crmLog); createDirectory(recordPath); }
private void micamvalue_SelectedIndexChanged(object sender, EventArgs e) { BriSDKLib.QNV_SetParam((short)selchannel.SelectedIndex, BriSDKLib.QNV_PARAM_AM_MIC, micamvalue.SelectedIndex); }