예제 #1
0
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     Debug.WriteLine("[LinphoneManager] Echo canceller calibration status: " + status.ToString() + "\r\n");
     if (status == EcCalibratorStatus.Done)
     {
         Debug.WriteLine("[LinphoneManager] Echo canceller delay: {0} ms\r\n", delayMs);
     }
     if (ECListener != null)
     {
         ECListener.ECStatusNotified(status, delayMs);
     }
 }
예제 #2
0
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     Debug.WriteLine("[LinphoneManager] Echo canceller calibration status: " + status.ToString() + "\r\n");
     if (status == EcCalibratorStatus.Done)
     {
         Debug.WriteLine("[LinphoneManager] Echo canceller delay: {0} ms\r\n", delayMs);
     }
     CoreDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {
         if (ECListener != null)
         {
             ECListener.ECStatusNotified(status, delayMs);
         }
     });
 }
예제 #3
0
 /// <summary>
 /// Called when the echo calibrator returns its status.
 /// </summary>
 /// <param name="status">The status of the echo canceller calibrator</param>
 /// <param name="delayMs">The echo delay in milliseconds if the status is EcCalibratorStatus.Done</param>
 public void ECStatusNotified(EcCalibratorStatus status, int delayMs)
 {
     /* var loader = new Windows.ApplicationModel.Resources.ResourceLoader();
      * if (status == EcCalibratorStatus.Done) {
      *   ECCalibratorStatusButton.Text = String.Format(loader.GetString("ECCalibrationDone"), delayMs);
      * } else if (status == EcCalibratorStatus.DoneNoEcho) {
      *   ECCalibratorStatusButton.Text = loader.GetString("ECCalibrationDoneNoEcho");
      * } else if (status == EcCalibratorStatus.Failed) {
      *   ECCalibratorStatusButton.Text = loader.GetString("ECCalibrationFailed");
      * } else if (status == EcCalibratorStatus.InProgress) {
      *   ECCalibratorStatusButton.Text = loader.GetString("ECCalibrationInProgress");
      * }
      * ECCalibratorButton.IsEnabled = true;*/
 }
예제 #4
0
 /// <summary>
 /// Called when the echo calibrator returns its status.
 /// </summary>
 /// <param name="status">The status of the echo canceller calibrator</param>
 /// <param name="delayMs">The echo delay in milliseconds if the status is EcCalibratorStatus.Done</param>
 public void ECStatusNotified(EcCalibratorStatus status, int delayMs)
 {
     BaseModel.UIDispatcher.BeginInvoke(() =>
     {
         if (status == EcCalibratorStatus.Done)
         {
             ECCalibratorStatusButton.Content = String.Format(AppResources.ECCalibrationDone, delayMs);
         }
         else if (status == EcCalibratorStatus.DoneNoEcho)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationDoneNoEcho;
         }
         else if (status == EcCalibratorStatus.Failed)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationFailed;
         }
         else if (status == EcCalibratorStatus.InProgress)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationInProgress;
         }
         ECCalibratorButton.IsEnabled = true;
     });
 }
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
 }
예제 #6
0
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     Console.WriteLine("EcCalibrationStatus");
 }
 /// <summary>
 /// Called when the echo calibrator returns its status.
 /// </summary>
 /// <param name="status">The status of the echo canceller calibrator</param>
 /// <param name="delayMs">The echo delay in milliseconds if the status is EcCalibratorStatus.Done</param>
 public void ECStatusNotified(EcCalibratorStatus status, int delayMs)
 {
     BaseModel.UIDispatcher.BeginInvoke(() =>
     {
         if (status == EcCalibratorStatus.Done)
         {
             ECCalibratorStatusButton.Content = String.Format(AppResources.ECCalibrationDone, delayMs);
         }
         else if (status == EcCalibratorStatus.DoneNoEcho)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationDoneNoEcho;
         }
         else if (status == EcCalibratorStatus.Failed)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationFailed;
         }
         else if (status == EcCalibratorStatus.InProgress)
         {
             ECCalibratorStatusButton.Content = AppResources.ECCalibrationInProgress;
         }
         ECCalibratorButton.IsEnabled = true;
     });
 }
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     WriteLog("EcCalibrationStatus");
 }
예제 #9
0
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     WriteLog("EcCalibrationStatus");
 }
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     Console.WriteLine("EcCalibrationStatus");
 }
예제 #11
0
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
     Logger.Msg("[LinphoneManager] Echo canceller calibration status: " + status.ToString() + "\r\n");
     if (status == EcCalibratorStatus.Done)
     {
         Logger.Msg("[LinphoneManager] Echo canceller delay: {0} ms\r\n", delayMs);
     }
     if (ECListener != null)
     {
         ECListener.ECStatusNotified(status, delayMs);
     }
 }
 /// <summary>
 /// Callback for LinphoneCoreListener
 /// </summary>
 public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs)
 {
 }