Beispiel #1
0
 /// <summary>
 /// 停止播放声音
 /// </summary>
 public void StopSound()
 {
     if (null != CurrentAudioOutputDevice)
     {
         var errno = PlcmProxy.StopPlayAlert();
         if (ErrorNumber.OK != errno)
         {
             var errMsg = "关闭铃声播放失败,ErrorNo=" + errno;
             log.Error(errMsg);
             throw new Exception(errMsg);
         }
         log.Info("关闭铃声播放成功");
     }
 }