mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-25 08:12:30 -04:00
Remove unused demod buffer
This commit is contained in:
parent
63ea642c88
commit
a55dcad8be
@ -87,10 +87,8 @@ void DemodulatorThread::run() {
|
|||||||
if (agcData.size() != bufSize) {
|
if (agcData.size() != bufSize) {
|
||||||
if (agcData.capacity() < bufSize) {
|
if (agcData.capacity() < bufSize) {
|
||||||
agcData.reserve(bufSize);
|
agcData.reserve(bufSize);
|
||||||
agcAMData.reserve(bufSize);
|
|
||||||
}
|
}
|
||||||
agcData.resize(bufSize);
|
agcData.resize(bufSize);
|
||||||
agcAMData.resize(bufSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
agc_crcf_execute_block(iqAutoGain, &(inp->data[0]), bufSize, &agcData[0]);
|
agc_crcf_execute_block(iqAutoGain, &(inp->data[0]), bufSize, &agcData[0]);
|
||||||
@ -118,7 +116,7 @@ void DemodulatorThread::run() {
|
|||||||
AudioThreadInput *ati = NULL;
|
AudioThreadInput *ati = NULL;
|
||||||
|
|
||||||
ModemAnalog *modemAnalog = (cModem->getType() == "analog")?((ModemAnalog *)cModem):nullptr;
|
ModemAnalog *modemAnalog = (cModem->getType() == "analog")?((ModemAnalog *)cModem):nullptr;
|
||||||
ModemDigital *modemDigital = (cModem->getType() == "digital")?((ModemDigital *)cModem):nullptr;
|
// ModemDigital *modemDigital = (cModem->getType() == "digital")?((ModemDigital *)cModem):nullptr;
|
||||||
|
|
||||||
if (modemAnalog != nullptr) {
|
if (modemAnalog != nullptr) {
|
||||||
ati = outputBuffers.getBuffer();
|
ati = outputBuffers.getBuffer();
|
||||||
|
@ -38,7 +38,6 @@ protected:
|
|||||||
ReBuffer<AudioThreadInput> outputBuffers;
|
ReBuffer<AudioThreadInput> outputBuffers;
|
||||||
|
|
||||||
std::vector<liquid_float_complex> agcData;
|
std::vector<liquid_float_complex> agcData;
|
||||||
std::vector<float> agcAMData;
|
|
||||||
|
|
||||||
agc_crcf iqAutoGain;
|
agc_crcf iqAutoGain;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user