1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-06 03:29:12 -04:00

SDRdaemon input: use size of Sample instead of literals

This commit is contained in:
f4exb 2018-01-25 18:39:04 +01:00
parent 3106faec8e
commit 810ca8b057

View File

@ -290,7 +290,7 @@ void SDRdaemonSourceUDPHandler::tick()
m_converterBuffer[2*is+1]<<=8;
}
m_sampleFifo->write(reinterpret_cast<quint8*>(m_converterBuffer), m_readLengthSamples*4*2);
m_sampleFifo->write(reinterpret_cast<quint8*>(m_converterBuffer), m_readLengthSamples*sizeof(Sample));
}
if (m_tickCount < m_rateDivider)