Skip to content

Prevent duplicated enhanced broadcasting audio in a multicanvas setup#721

Merged
aleksandr-voitenko merged 1 commit intostreamlabsfrom
fix-obs31-audio-canvas-routing
Apr 8, 2026
Merged

Prevent duplicated enhanced broadcasting audio in a multicanvas setup#721
aleksandr-voitenko merged 1 commit intostreamlabsfrom
fix-obs31-audio-canvas-routing

Conversation

@aleksandr-voitenko
Copy link
Copy Markdown
Collaborator

@aleksandr-voitenko aleksandr-voitenko commented Apr 7, 2026

Description

Fixes distorted/slowed audio when Twitch Enhanced Broadcasting (multitrack video) is enabled.

Motivation and Context

In our code audio output is processed per active canvas. Paired audio encoders were not inheriting the canvas/mix context from their paired video encoder, which allowed the same audio encoder to receive duplicate audio blocks when multiple canvases were active. Which is our case because we create both canvases (contexts) even in single streaming mode.

Additionally, fixed a duplicated during the merge BPM packets setup block.

Fix

When pairing audio and video encoders in obs_output, make the audio encoder follow the paired video encoder's canvas association.

How Has This Been Tested?

Manually, Windows only.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@aleksandr-voitenko aleksandr-voitenko changed the title Prevent duplicated enhanced broadcasting audio in a multicanvas setup [WIP] Prevent duplicated enhanced broadcasting audio in a multicanvas setup Apr 7, 2026
@aleksandr-voitenko aleksandr-voitenko changed the title [WIP] Prevent duplicated enhanced broadcasting audio in a multicanvas setup Prevent duplicated enhanced broadcasting audio in a multicanvas setup Apr 7, 2026
Copy link
Copy Markdown

@sandboxcoder sandboxcoder left a comment

Choose a reason for hiding this comment

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

LGTM, just checked on Mac it works wonderful thanks and code looks great

@aleksandr-voitenko aleksandr-voitenko merged commit cda4ff0 into streamlabs Apr 8, 2026
30 checks passed
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