Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mono compatibility with LADSPA plugins #7674

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

sakertooth
Copy link
Contributor

When requesting the number of channels, LADSPA incorrectly asks the playback device for that number. LMMS always gives stereo output, with any downmixing to mono (if applicable) to be handled at the very last stage when converting the rendered buffer to be played back on the hardware, not during the processing of said buffer.

AudioDevice::channels was also made to be protected as it should only be relevant to the conversion layer mentioned previously.

Copy link
Member

@messmerd messmerd left a comment

Choose a reason for hiding this comment

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

Haven't tested, but it looks good to me

@sakertooth sakertooth merged commit 77ca0f8 into LMMS:master Jan 31, 2025
9 checks passed
@sakertooth sakertooth deleted the fix-ladspa-mono-compat branch January 31, 2025 05:58
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