diff --git a/src/client.cpp b/src/client.cpp index 4ce2e795..3b1f5178 100755 --- a/src/client.cpp +++ b/src/client.cpp @@ -353,7 +353,8 @@ void CClient::ProcessAudioData ( CVector& vecsStereoSndCrd ) for ( i = 0, j = 0; i < iMonoBlockSizeSam; i++, j += 2 ) { vecsNetwork[i] = - Double2Short ( vecdAudioStereo[j] + vecdAudioStereo[j + 1] ); + Double2Short ( ( vecdAudioStereo[j] + + vecdAudioStereo[j + 1] ) / 2 ); } } else @@ -368,7 +369,8 @@ void CClient::ProcessAudioData ( CVector& vecsStereoSndCrd ) { // attenuation on right channel vecsNetwork[i] = - Double2Short ( vecdAudioStereo[j] + dAttFact * vecdAudioStereo[j + 1] ); + Double2Short ( ( vecdAudioStereo[j] + + dAttFact * vecdAudioStereo[j + 1] ) / 2 ); } } else @@ -377,7 +379,8 @@ void CClient::ProcessAudioData ( CVector& vecsStereoSndCrd ) { // attenuation on left channel vecsNetwork[i] = - Double2Short ( vecdAudioStereo[j + 1] + dAttFact * vecdAudioStereo[j] ); + Double2Short ( ( vecdAudioStereo[j + 1] + + dAttFact * vecdAudioStereo[j] ) / 2 ); } } } diff --git a/src/llconclientdlg.cpp b/src/llconclientdlg.cpp index cb679182..2aa0b3c6 100755 --- a/src/llconclientdlg.cpp +++ b/src/llconclientdlg.cpp @@ -172,6 +172,7 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, MultiColorLEDBarInputLevelL->setEnabled ( false ); MultiColorLEDBarInputLevelR->setEnabled ( false ); LEDOverallStatus->setEnabled ( false ); + PushButtonConnect->setFocus(); } diff --git a/src/resample.cpp b/src/resample.cpp index 2af49f9b..c841c235 100755 --- a/src/resample.cpp +++ b/src/resample.cpp @@ -11,7 +11,7 @@ * whereby we perform a linear interpolation between these two samples to get * an arbitraty sample grid. * - * The polyphase filter is calculated with Matlab(TM), the associated file + * The polyphase filter is calculated with Matlab, the associated file * is ResampleFilter.m. * ******************************************************************************