Copy the full badwidth into a new DemodulatorThreadIQDataPtr.
| 219 | |
| 220 | // Copy the full badwidth into a new DemodulatorThreadIQDataPtr. |
| 221 | DemodulatorThreadIQDataPtr SDRPostThread::getFullSampleRateIqData(SDRThreadIQData *data_in) { |
| 222 | |
| 223 | DemodulatorThreadIQDataPtr iqDataOut = visualDataBuffers.getBuffer(); |
| 224 | |
| 225 | iqDataOut->frequency = data_in->frequency; |
| 226 | iqDataOut->sampleRate = data_in->sampleRate; |
| 227 | iqDataOut->data.assign(data_in->data.begin(), data_in->data.begin() + data_in->data.size()); |
| 228 | |
| 229 | return iqDataOut; |
| 230 | } |
| 231 | |
| 232 | // Push visual data; i.e. Main Waterfall (all frames) and Spectrum (active frame) |
| 233 | void SDRPostThread::pushVisualData(const DemodulatorThreadIQDataPtr& iqDataOut) { |