Skip to content

fix(visualizer): capture stereo in system loopback - #2495

Merged
jeffvli merged 1 commit into
jeffvli:developmentfrom
xela-zone:fix/visualizer-stereo-loopback
Sep 22, 2026
Merged

jeffvli merged 1 commit into
jeffvli:developmentfrom
xela-zone:fix/visualizer-stereo-loopback

Conversation

@xela-zone

Copy link
Copy Markdown
Contributor

Chromium getDisplayMedia defaults to mono with voice processing on. Explicitly request 2 channels and disable AGC, echo, and noise filters.

problem

when playing audio using MPV or another playback engine that uses desktop capture for visualization, the visualizer displays mono sound, instead of stereo.

root cause

the default settings for getDisplayMedia({audio: true}) appear to match a 'conference call' or similar use case, rather than a closer to raw capture.

instead of using the defaults, i've changed it to explicitly request: 2 channels no AGC, echo cancellation, or noise suppression.

verification

verified by listening to Jerobeam Fenderson's Oscillopscope Music. it has heavy stereo panning.

Chromium getDisplayMedia defaults to mono with voice processing on.
Explicitly request 2 channels and disable AGC, echo, and noise filters.
@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
feishin Ready Ready Preview Sep 18, 2026 2:52am UTC

@jeffvli

jeffvli commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Thanks, did not realize that!

@jeffvli
jeffvli merged commit b320f71 into jeffvli:development Sep 22, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — fbdc038c Deployed Sep 18, 2026 by vercel[bot]
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.

2 participants