mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-04 02:28:33 -04:00
SoapySDR support: input: corrected number of samples in handler
This commit is contained in:
parent
0ff0a4ff06
commit
2cab4ff7bd
@ -150,24 +150,24 @@ void SoapySDRInputThread::run()
|
||||
|
||||
if (m_nbChannels > 1)
|
||||
{
|
||||
callbackMI(buffs, (elemSize/2)*numElems);
|
||||
callbackMI(buffs, numElems*2); // size given in number of I or Q samples (2 items per sample)
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (m_decimatorType)
|
||||
{
|
||||
case Decimator8:
|
||||
callbackSI8((const qint8*) buffs[0], (elemSize/2)*numElems);
|
||||
callbackSI8((const qint8*) buffs[0], numElems*2);
|
||||
break;
|
||||
case Decimator12:
|
||||
callbackSI12((const qint16*) buffs[0], (elemSize/2)*numElems);
|
||||
callbackSI12((const qint16*) buffs[0], numElems*2);
|
||||
break;
|
||||
case Decimator16:
|
||||
callbackSI16((const qint16*) buffs[0], (elemSize/2)*numElems);
|
||||
callbackSI16((const qint16*) buffs[0], numElems*2);
|
||||
break;
|
||||
case DecimatorFloat:
|
||||
default:
|
||||
callbackSIF((const float*) buffs[0], (elemSize/2)*numElems);
|
||||
callbackSIF((const float*) buffs[0], numElems*2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user