1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

ATV plugins: Windows build updates

This commit is contained in:
f4exb 2017-03-19 20:18:44 +01:00
parent 26900d4b78
commit b677138b45
2 changed files with 7 additions and 1 deletions

View File

@ -257,9 +257,13 @@ void ATVDemod::demod(Complex& c)
//********** demodulation **********
#if defined(_WINDOWS_)
float fltI = m_objRFRunning.m_blnFFTFiltering ? m_DSBFilterBuffer[m_DSBFilterBufferIndex-1].real() : c.real();
float fltQ = m_objRFRunning.m_blnFFTFiltering ? m_DSBFilterBuffer[m_DSBFilterBufferIndex-1].imag() : c.imag();
#else
float& fltI = m_objRFRunning.m_blnFFTFiltering ? m_DSBFilterBuffer[m_DSBFilterBufferIndex-1].real() : c.real();
float& fltQ = m_objRFRunning.m_blnFFTFiltering ? m_DSBFilterBuffer[m_DSBFilterBufferIndex-1].imag() : c.imag();
#endif
double magSq = fltI*fltI + fltQ*fltQ;
m_objMagSqAverage.feed(magSq);

View File

@ -64,6 +64,7 @@ SOURCES += mainwindow.cpp\
dsp/ncof.cpp\
dsp/pidcontroller.cpp\
dsp/phaselock.cpp\
dsp/recursivefilters.cpp\
dsp/samplesinkfifo.cpp\
dsp/samplesourcefifo.cpp\
dsp/samplesinkfifodoublebuffered.cpp\
@ -169,6 +170,7 @@ HEADERS += mainwindow.h\
dsp/phasediscri.h\
dsp/phaselock.h\
dsp/pidcontroller.h\
dsp/recursivefilters.h\
dsp/samplesinkfifo.h\
dsp/samplesourcefifo.h\
dsp/samplesinkfifodoublebuffered.h\