/// <summary> /// 设置扬声器音量值 /// </summary> /// <param name="volume">音量值</param> public void SetMicVolume(int volume) { var errno = PlcmProxy.SetMicVolume(volume); if (ErrorNumber.OK != errno) { var errMag = "麦克风音量设置失败,errno=" + errno; log.Error(errMag); throw new Exception(errMag); } log.Info("麦克风音量设置成功"); }