|
|
|
@ -70,6 +70,8 @@ namespace Lib.Audio |
|
|
|
{ |
|
|
|
{ |
|
|
|
Controllable = controllable; |
|
|
|
Controllable = controllable; |
|
|
|
ToggleSelectButtonLed(); |
|
|
|
ToggleSelectButtonLed(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Controllable.IsValid) |
|
|
|
InitializeFader(controllable); |
|
|
|
InitializeFader(controllable); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -152,21 +154,21 @@ namespace Lib.Audio |
|
|
|
|
|
|
|
|
|
|
|
private void OnProcessManagerProcessStarted(object? sender, IObservedProcess process) |
|
|
|
private void OnProcessManagerProcessStarted(object? sender, IObservedProcess process) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (Controllable?.Process == null) |
|
|
|
if (Controllable == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (!Controllable.Process.IsSameExecutable(process)) |
|
|
|
if (!Controllable.ExecutablePath.Equals(process.FileName)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
Controllable = _controllableCollector.GetControllableForProcess(process); |
|
|
|
Controllable = _controllableCollector.GetControllableForExecutable(Controllable.ExecutablePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void OnProcessManagerProcessExited(object? sender, IObservedProcess process) |
|
|
|
private void OnProcessManagerProcessExited(object? sender, IObservedProcess process) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (Controllable?.Process == null) |
|
|
|
if (Controllable == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (!Controllable.Process.IsSameExecutable(process)) |
|
|
|
if (!Controllable.ExecutablePath.Equals(process.FileName)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
Controllable.IsValid = false; //TODO: Toggle Record button led |
|
|
|
Controllable.IsValid = false; //TODO: Toggle Record button led |
|
|
|
|