mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-05 07:24:44 -04:00
SDRDaemonSink: refactored rate control and removed server type from GUI and REST API
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
@@ -136,3 +137,9 @@ void SDRdaemonSinkThread::tick()
|
||||
m_udpSinkFEC.write(beginRead, m_samplesChunkSize);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t SDRdaemonSinkThread::getSamplesCount(struct timeval& tv) const
|
||||
{
|
||||
gettimeofday(&tv, 0);
|
||||
return m_samplesCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user