From e4752f4d9693f409ab79c44ff2e3a0d30820db6f Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 15 Apr 2020 15:39:03 +0200 Subject: [PATCH] use 128 samples frame size as the default if software starts up for the first time --- src/client.cpp | 4 ++-- src/clientsettingsdlg.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 2ae65647..ef68a111 100755 --- a/src/client.cpp +++ b/src/client.cpp @@ -62,8 +62,8 @@ CClient::CClient ( const quint16 iPortNumber, iAudioInFader ( AUD_FADER_IN_MIDDLE ), bReverbOnLeftChan ( false ), iReverbLevel ( 0 ), - iSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_PREFERRED ), - iSndCrdFrameSizeFactor ( FRAME_SIZE_FACTOR_PREFERRED ), + iSndCrdPrefFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ), + iSndCrdFrameSizeFactor ( FRAME_SIZE_FACTOR_DEFAULT ), bSndCrdConversionBufferRequired ( false ), iSndCardMonoBlockSizeSamConvBuff ( 0 ), bFraSiFactPrefSupported ( false ), diff --git a/src/clientsettingsdlg.cpp b/src/clientsettingsdlg.cpp index c2c4a972..1a291aac 100755 --- a/src/clientsettingsdlg.cpp +++ b/src/clientsettingsdlg.cpp @@ -347,11 +347,11 @@ CClientSettingsDlg::CClientSettingsDlg ( CClient* pNCliP, QWidget* parent, // set text for sound card buffer delay radio buttons rbtBufferDelayPreferred->setText ( GenSndCrdBufferDelayString ( - FRAME_SIZE_FACTOR_PREFERRED * SYSTEM_FRAME_SIZE_SAMPLES, - ", preferred" ) ); + FRAME_SIZE_FACTOR_PREFERRED * SYSTEM_FRAME_SIZE_SAMPLES ) ); rbtBufferDelayDefault->setText ( GenSndCrdBufferDelayString ( - FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES ) ); + FRAME_SIZE_FACTOR_DEFAULT * SYSTEM_FRAME_SIZE_SAMPLES, + ", preferred" ) ); rbtBufferDelaySafe->setText ( GenSndCrdBufferDelayString ( FRAME_SIZE_FACTOR_SAFE * SYSTEM_FRAME_SIZE_SAMPLES ) );