some fixes, added test code
This commit is contained in:
parent
bcf39db392
commit
b21af7809b
4 changed files with 10 additions and 3 deletions
|
@ -129,6 +129,11 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP,
|
|||
MultiColorLEDBarInputLevelR->setValue ( 0 );
|
||||
|
||||
|
||||
// TEST
|
||||
MultiColorLEDBarInputLevelL->setEnabled ( false );
|
||||
|
||||
|
||||
|
||||
// init slider controls ---
|
||||
// audio in fader
|
||||
SliderAudInFader->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
||||
|
|
|
@ -70,7 +70,7 @@ CMultiColorLEDBar::~CMultiColorLEDBar()
|
|||
void CMultiColorLEDBar::changeEvent ( QEvent* curEvent )
|
||||
{
|
||||
// act on enabled changed state
|
||||
if ( (*curEvent).type() == QEvent::EnabledChange )
|
||||
if ( curEvent->type() == QEvent::EnabledChange )
|
||||
{
|
||||
// reset all LEDs
|
||||
Reset ( this->isEnabled() );
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<qresource prefix="/png/LEDs" >
|
||||
<file>res/CLEDBlack.png</file>
|
||||
<file>res/CLEDBlackSmall.png</file>
|
||||
<file>res/CLEDDisabledSmall.png</file>
|
||||
<file>res/CLEDGreen.png</file>
|
||||
<file>res/CLEDGreenSmall.png</file>
|
||||
<file>res/CLEDGrey.png</file>
|
||||
|
@ -12,6 +13,7 @@
|
|||
<file>res/CLEDYellowSmall.png</file>
|
||||
<file>res/VLEDBlack.png</file>
|
||||
<file>res/VLEDBlackSmall.png</file>
|
||||
<file>res/VLEDDisabledSmall.png</file>
|
||||
<file>res/VLEDGreen.png</file>
|
||||
<file>res/VLEDGreenSmall.png</file>
|
||||
<file>res/VLEDGrey.png</file>
|
||||
|
|
|
@ -173,7 +173,7 @@ CVector<short> CServer::ProcessData ( CVector<CVector<double> >& vecvecdData,
|
|||
// if channel gain is 1, avoid multiplication for speed optimization
|
||||
if ( vecdGains[j] == static_cast<double> ( 1.0 ) )
|
||||
{
|
||||
for ( int i = 0; i < MIN_SERVER_BLOCK_SIZE_SAMPLES; i++ )
|
||||
for ( i = 0; i < MIN_SERVER_BLOCK_SIZE_SAMPLES; i++ )
|
||||
{
|
||||
vecsOutData[i] =
|
||||
Double2Short ( vecsOutData[i] + vecvecdData[j][i] );
|
||||
|
@ -181,7 +181,7 @@ CVector<short> CServer::ProcessData ( CVector<CVector<double> >& vecvecdData,
|
|||
}
|
||||
else
|
||||
{
|
||||
for ( int i = 0; i < MIN_SERVER_BLOCK_SIZE_SAMPLES; i++ )
|
||||
for ( i = 0; i < MIN_SERVER_BLOCK_SIZE_SAMPLES; i++ )
|
||||
{
|
||||
vecsOutData[i] =
|
||||
Double2Short ( vecsOutData[i] +
|
||||
|
|
Loading…
Reference in a new issue