Skip to content

fix: check for SecondaryAudio | Video#1259

Merged
AECohn merged 2 commits into
mainfrom
routing-updates
Apr 24, 2025
Merged

fix: check for SecondaryAudio | Video#1259
AECohn merged 2 commits into
mainfrom
routing-updates

Conversation

@andrew-welker
Copy link
Copy Markdown
Contributor

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.

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.
@andrew-welker andrew-welker requested a review from Copilot April 24, 2025 14:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the routing logic to correctly classify routes as dual-path when both Video and SecondaryAudio flags are present.

  • Key changes:
    • Added an additional check for routes with both Video and SecondaryAudio flags.
    • Modified the condition in GetRouteToSource to determine dual-path routing.

Comment thread src/PepperDash.Essentials.Core/Routing/Extensions.cs Outdated
ndorin
ndorin previously approved these changes Apr 24, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the routing logic to correctly detect a dual-path route when both Video and SecondaryAudio flags are set, addressing scenarios where the NAX path should be used.

  • Updated the conditional in GetRouteToSource to include a dual-path check.
  • Ensured legacy behavior remains for single signal types.
Comments suppressed due to low confidence (1)

src/PepperDash.Essentials.Core/Routing/Extensions.cs:72

  • [nitpick] Consider assigning the dual-path check (signalType.HasFlag(eRoutingSignalType.Video) && signalType.HasFlag(eRoutingSignalType.SecondaryAudio)) to a descriptive variable, which can help improve readability and maintainability of the conditional logic.
if (!signalType.HasFlag(eRoutingSignalType.AudioVideo) &&

@AECohn AECohn merged commit e8276c4 into main Apr 24, 2025
2 checks passed
@AECohn AECohn deleted the routing-updates branch April 24, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants