Example #1
0
        /// <summary>
        /// 静音扬声器
        /// </summary>
        /// <param name="isMute">是否静音</param>
        public void MuteSpeaker(bool isMute)
        {
            var errno = PlcmProxy.MuteSpeaker(isMute);

            if (ErrorNumber.OK != errno)
            {
                var errMsg = "扬声器静音设置失败,errno=" + errno;
                log.Error(errMsg);
                throw new Exception(errMsg);
            }
            log.Info("扬声器静音设置成功");
        }