1
0
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:
f4exb
2018-09-04 08:43:07 +02:00
parent 6f3bb72d52
commit 4a06cc94a0
15 changed files with 133 additions and 210 deletions
@@ -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;
}