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

LimeSDR output: compilation succesful

This commit is contained in:
f4exb
2017-04-22 11:33:41 +02:00
parent 90b7599a12
commit e07a730c4f
5 changed files with 16 additions and 10 deletions
@@ -85,7 +85,7 @@ void LimeSDROutputThread::run()
{
callback(m_buf, 2 * res);
if ((res = LMS_SendStream(m_stream, (void *) m_buf, LIMESDR_BLOCKSIZE, &metadata, 1000)) < 0)
if ((res = LMS_SendStream(m_stream, (void *) m_buf, LIMESDROUTPUT_BLOCKSIZE, &metadata, 1000)) < 0)
{
qCritical("LimeSDROutputThread::run write error: %s", strerror(errno));
break;
@@ -102,7 +102,7 @@ void LimeSDROutputThread::run()
}
// Interpolate according to specified log2 (ex: log2=4 => decim=16)
void LimeSDROutputThread::callback(const qint16* buf, qint32 len)
void LimeSDROutputThread::callback(qint16* buf, qint32 len)
{
SampleVector::iterator beginRead;
m_sampleFifo->readAdvance(beginRead, len/(1<<m_log2Interp));