Beispiel #1
0
        /// <summary>
        /// 设置扬声器音量值
        /// </summary>
        /// <param name="volume">音量值</param>
        public void SetSpeakerVolume(int volume)
        {
            var errno = PlcmProxy.SetSpeakerVolume(volume);

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