Skip to content

Commit

Permalink
DlgPrefSound: Fix fetching of sample rate
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Sep 10, 2023
1 parent f4692aa commit a4a401c
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit a4a401c

Please sign in to comment.