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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/preferences/dialog/dlgprefsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,11 @@ void DlgPrefSound::updateAudioBufferSizes(int sampleRateIndex) {
static_cast<unsigned int>(SoundManagerConfig::
JackAudioBufferSizeIndex::Size4096fpp));
} else {
double sampleRate = sampleRateComboBox->itemData(sampleRateIndex).toDouble();
DEBUG_ASSERT(sampleRateComboBox->itemData(sampleRateIndex)
.canConvert<mixxx::audio::SampleRate>());
double sampleRate = sampleRateComboBox->itemData(sampleRateIndex)
.value<mixxx::audio::SampleRate>()
.toDouble();
unsigned int framesPerBuffer = 1; // start this at 0 and inf loop happens
// we don't want to display any sub-1ms buffer sizes (well maybe we do but I
// don't right now!), so we iterate over all the buffer sizes until we
Expand Down