mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
fix: implement PR Review suggestions
This commit is contained in:
@@ -134,7 +134,7 @@ namespace PepperDash.Essentials.Core
|
|||||||
}
|
}
|
||||||
// otherwise, audioVideo needs to be handled as two steps.
|
// otherwise, audioVideo needs to be handled as two steps.
|
||||||
|
|
||||||
Debug.LogMessage(LogEventLevel.Debug, "Attempting to build source route from {sourceKey} of type {type}", destination, source.Key, signalType);
|
Debug.LogMessage(LogEventLevel.Debug, "Attempting to build source route from {destinationKey} to {sourceKey} of type {type}", destination, source.Key, signalType);
|
||||||
|
|
||||||
RouteDescriptor audioRouteDescriptor;
|
RouteDescriptor audioRouteDescriptor;
|
||||||
|
|
||||||
|
|||||||
@@ -75,26 +75,10 @@ namespace PepperDash.Essentials.Devices.Common.Generic
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateCurrentSources(eRoutingSignalType signalType, string sourceListKey, SourceListItem sourceListItem)
|
private void UpdateCurrentSources(eRoutingSignalType signalType, string sourceListKey, SourceListItem sourceListItem)
|
||||||
{
|
|
||||||
if (CurrentSources.ContainsKey(signalType))
|
|
||||||
{
|
{
|
||||||
CurrentSources[signalType] = sourceListItem;
|
CurrentSources[signalType] = sourceListItem;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CurrentSources.Add(signalType, sourceListItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the current source key for the specified signal type
|
|
||||||
if (CurrentSourceKeys.ContainsKey(signalType))
|
|
||||||
{
|
|
||||||
CurrentSourceKeys[signalType] = sourceListKey;
|
CurrentSourceKeys[signalType] = sourceListKey;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
CurrentSourceKeys.Add(signalType, sourceListKey);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the InputPorts
|
/// Gets or sets the InputPorts
|
||||||
|
|||||||
Reference in New Issue
Block a user