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); } }
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); } }); }
/// <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;*/ }
/// <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) { }
public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs) { Console.WriteLine("EcCalibrationStatus"); }
public void EcCalibrationStatus(EcCalibratorStatus status, int delayMs) { WriteLog("EcCalibrationStatus"); }
/// <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); } }