diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index 86ee5be31..cf071e3f1 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -249,8 +249,10 @@ string SoundSDL2::about() const } buf << " Sample rate: " << uInt32(myHardwareSpec.freq) << endl << " Frag size: " << uInt32(myHardwareSpec.samples) << endl - << " Buffer size: " << myAudioSettings.bufferSize() << endl - << " Head room: " << myAudioSettings.headroom() << endl + << " Head room: " << std::fixed << std::setprecision(1) + << (0.5 * myAudioSettings.headroom()) << " frames" << endl + << " Buffer size: " << std::fixed << std::setprecision(1) + << (0.5 * myAudioSettings.bufferSize()) << " frames" << endl << " Resampling: "; switch (myAudioSettings.resamplingQuality()) { case AudioSettings::ResamplingQuality::nearestNeightbour: diff --git a/src/gui/AudioDialog.cxx b/src/gui/AudioDialog.cxx index 21a1ba037..3abef70b1 100644 --- a/src/gui/AudioDialog.cxx +++ b/src/gui/AudioDialog.cxx @@ -219,8 +219,7 @@ void AudioDialog::saveConfig() audioSettings.setPreset(preset); if (preset == AudioSettings::Preset::custom) { - - // Fragsize + // Fragsize audioSettings.setFragmentSize(myFragsizePopup->getSelectedTag().toInt()); audioSettings.setSampleRate(myFreqPopup->getSelectedTag().toInt()); audioSettings.setHeadroom(myHeadroomSlider->getValue());