mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Tx plugins: corrected FIFO begin iterator vs number of samples read
This commit is contained in:
@@ -236,7 +236,7 @@ void XTRXOutputThread::callback(qint16* buf, qint32 len)
|
||||
|
||||
SampleVector::iterator beginRead;
|
||||
m_channels[m_uniqueChannelIndex].m_sampleFifo->readAdvance(beginRead, len/(1<<m_channels[m_uniqueChannelIndex].m_log2Interp));
|
||||
beginRead -= len;
|
||||
beginRead -= len/(1<<m_channels[m_uniqueChannelIndex].m_log2Interp);
|
||||
|
||||
if (m_channels[m_uniqueChannelIndex].m_log2Interp == 0)
|
||||
{
|
||||
@@ -289,7 +289,7 @@ void XTRXOutputThread::callbackSO(qint16* buf, qint32 len)
|
||||
|
||||
SampleVector::iterator beginRead;
|
||||
m_channels[m_uniqueChannelIndex].m_sampleFifo->readAdvance(beginRead, len/(1<<m_channels[m_uniqueChannelIndex].m_log2Interp));
|
||||
beginRead -= len;
|
||||
beginRead -= len/(1<<m_channels[m_uniqueChannelIndex].m_log2Interp);
|
||||
|
||||
if (m_channels[m_uniqueChannelIndex].m_log2Interp == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user