1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

AirspyHF (float): working plugin

This commit is contained in:
f4exb
2018-02-02 02:12:49 +01:00
parent e7e8702d17
commit d43ecaf8f7
9 changed files with 2126 additions and 11 deletions
@@ -99,7 +99,7 @@ void AirspyHFFThread::run()
}
// Decimate according to specified log2 (ex: log2=4 => decim=16)
void AirspyHFFThread::callback(const qint16* buf, qint32 len)
void AirspyHFFThread::callback(const float* buf, qint32 len)
{
SampleVector::iterator it = m_convertBuffer.begin();
@@ -136,7 +136,7 @@ void AirspyHFFThread::callback(const qint16* buf, qint32 len)
int AirspyHFFThread::rx_callback(airspyhf_transfer_t* transfer)
{
qint32 bytes_to_write = transfer->sample_count * sizeof(qint16);
m_this->callback((qint16 *) transfer->samples, bytes_to_write);
qint32 nbIAndQ = transfer->sample_count * 2;
m_this->callback((float *) transfer->samples, nbIAndQ);
return 0;
}