private void HandleDeviceCommand(DapSource source, DeviceCommandAction action) { if ((action & DeviceCommandAction.Activate) != 0) { ServiceManager.SourceManager.SetActiveSource(source); } }
private void HandleDeviceCommand(AudioCdSource source, DeviceCommandAction action) { if ((action & DeviceCommandAction.Activate) != 0) { ServiceManager.SourceManager.SetActiveSource(source); } if ((action & DeviceCommandAction.Play) != 0) { ServiceManager.PlaybackController.NextSource = source; if (!ServiceManager.PlayerEngine.IsPlaying()) { ServiceManager.PlaybackController.Next(); } } }
private void HandleDeviceCommand (DapSource source, DeviceCommandAction action) { if ((action & DeviceCommandAction.Activate) != 0) { ServiceManager.SourceManager.SetActiveSource (source); } }
protected virtual void HandleDeviceCommand(DiscSource source, DeviceCommandAction action) { if ((action & DeviceCommandAction.Activate) != 0) { ServiceManager.SourceManager.SetActiveSource (source); } if ((action & DeviceCommandAction.Play) != 0) { ServiceManager.PlaybackController.NextSource = source; if (!ServiceManager.PlayerEngine.IsPlaying ()) { ServiceManager.PlaybackController.Next (); } } }
private DeviceCommand(DeviceCommandAction action) { this.action = action; }