mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
Tweak ringbuffer latency.
This commit is contained in:
parent
6062233dfa
commit
84d53dde4e
@ -69,16 +69,15 @@ void ThreadedSampleSink::handleData()
|
||||
// handle data
|
||||
if(m_sampleSink != NULL)
|
||||
m_sampleSink->feed(part1begin, part1end, positiveOnly);
|
||||
m_sampleFifo.readCommit(part1end - part1begin);
|
||||
}
|
||||
// second part of FIFO data (used when block wraps around)
|
||||
if(part2begin != part2end) {
|
||||
// handle data
|
||||
if(m_sampleSink != NULL)
|
||||
m_sampleSink->feed(part2begin, part2end, positiveOnly);
|
||||
m_sampleFifo.readCommit(part2end - part2begin);
|
||||
}
|
||||
|
||||
// adjust FIFO pointers
|
||||
m_sampleFifo.readCommit(count);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user