Skip to content

Commit

Permalink
Merge pull request #11951 from fwcd/fix-audio-buffer-samplerate
Browse files Browse the repository at this point in the history
DlgPrefSound: Fix fetching of sample rate
  • Loading branch information
Swiftb0y authored Sep 10, 2023
2 parents 1fce230 + a4a401c commit 37a9626
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 37a9626

Please sign in to comment.