From 702443f9539606eba296950ebca7734af0191b54 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Thu, 24 Apr 2025 09:55:22 -0500 Subject: [PATCH] fix: check for `SecondaryAudio | Video` In some scenarios when working with NVX, a route is intended to use the secondary audio (NAX) path instead of the primary audio path. A route that's both `Video` and `SecondaryAudio` should be considered a dual-path route instead of a single path. --- src/PepperDash.Essentials.Core/Routing/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PepperDash.Essentials.Core/Routing/Extensions.cs b/src/PepperDash.Essentials.Core/Routing/Extensions.cs index 0d7ce3ca..e6b5cfc5 100644 --- a/src/PepperDash.Essentials.Core/Routing/Extensions.cs +++ b/src/PepperDash.Essentials.Core/Routing/Extensions.cs @@ -69,7 +69,7 @@ namespace PepperDash.Essentials.Core public static (RouteDescriptor, RouteDescriptor) GetRouteToSource(this IRoutingInputs destination, IRoutingOutputs source, eRoutingSignalType signalType, RoutingInputPort destinationPort, RoutingOutputPort sourcePort) { // if it's a single signal type, find the route - if (!signalType.HasFlag(eRoutingSignalType.AudioVideo)) + if (!signalType.HasFlag(eRoutingSignalType.AudioVideo) && !signalType.HasFlag(eRoutingSignalType.Video | eRoutingSignalType.SecondaryAudio)) { var singleTypeRouteDescriptor = new RouteDescriptor(source, destination, destinationPort, signalType); Debug.LogMessage(LogEventLevel.Debug, "Attempting to build source route from {sourceKey} of type {type}", destination, source.Key, signalType);