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

DlgPrefSound: Fix fetching of sample rate #11951

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Sep 9, 2023

Fixes #11949, i.e. causes audio buffer sizes to be displayed correctly again:

image

The issue was that the sample rate combo box was still queried for a double, while underlying data already used the SampleRate type, causing it to presumably default to 0 and thus result in divisions by zero. This was likely an oversight in #11904.

@github-actions github-actions bot added the ui label Sep 9, 2023
src/preferences/dialog/dlgprefsound.cpp Outdated Show resolved Hide resolved
@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 9, 2023

thank you, please run pre-commit and squash.

@fwcd fwcd force-pushed the fix-audio-buffer-samplerate branch from 57e4ec3 to a4a401c Compare September 10, 2023 02:58
Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

LGTM thank you

@Swiftb0y Swiftb0y merged commit 37a9626 into mixxxdj:main Sep 10, 2023
11 checks passed
@fwcd fwcd deleted the fix-audio-buffer-samplerate branch September 10, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Audio buffer size UI shows inf ms on macOS
3 participants