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 9, 2023
1 parent f4692aa commit e5cb7cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preferences/dialog/dlgprefsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,8 @@ void DlgPrefSound::updateAudioBufferSizes(int sampleRateIndex) {
static_cast<unsigned int>(SoundManagerConfig::
JackAudioBufferSizeIndex::Size4096fpp));
} else {
double sampleRate = sampleRateComboBox->itemData(sampleRateIndex).toDouble();
double sampleRate = sampleRateComboBox->itemData(sampleRateIndex)
.value<mixxx::audio::SampleRate>();
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 e5cb7cb

Please sign in to comment.