mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-17 23:28:50 -05:00
Circular buffer fail.
This commit is contained in:
parent
0fc1ac6380
commit
243f3dbf69
@ -220,7 +220,6 @@ void DSPEngine::work()
|
||||
// feed data to handlers
|
||||
for(SampleSinks::const_iterator it = m_sampleSinks.begin(); it != m_sampleSinks.end(); it++)
|
||||
(*it)->feed(part1begin, part1end, firstOfBurst);
|
||||
firstOfBurst = false;
|
||||
}
|
||||
// second part of FIFO data (used when block wraps around)
|
||||
if(part2begin != part2end) {
|
||||
@ -232,8 +231,8 @@ void DSPEngine::work()
|
||||
// feed data to handlers
|
||||
for(SampleSinks::const_iterator it = m_sampleSinks.begin(); it != m_sampleSinks.end(); it++)
|
||||
(*it)->feed(part2begin, part2end, firstOfBurst);
|
||||
firstOfBurst = false;
|
||||
}
|
||||
firstOfBurst = false;
|
||||
|
||||
// adjust FIFO pointers
|
||||
sampleFifo->readCommit(count);
|
||||
|
@ -69,15 +69,14 @@ void ThreadedSampleSink::handleData()
|
||||
// handle data
|
||||
if(m_sampleSink != NULL)
|
||||
m_sampleSink->feed(part1begin, part1end, firstOfBurst);
|
||||
firstOfBurst = false;
|
||||
}
|
||||
// second part of FIFO data (used when block wraps around)
|
||||
if(part2begin != part2end) {
|
||||
// handle data
|
||||
if(m_sampleSink != NULL)
|
||||
m_sampleSink->feed(part1begin, part1end, firstOfBurst);
|
||||
firstOfBurst = false;
|
||||
m_sampleSink->feed(part2begin, part2end, firstOfBurst);
|
||||
}
|
||||
firstOfBurst = false;
|
||||
|
||||
// adjust FIFO pointers
|
||||
m_sampleFifo.readCommit(count);
|
||||
|
Loading…
Reference in New Issue
Block a user