mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user