1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

DV Serial: prepare multi slot (4)

This commit is contained in:
f4exb 2016-10-12 00:53:26 +02:00
parent 01c901a8fe
commit 9303a63931
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@
///////////////////////////////////////////////////////////////////////////////////
#include <unistd.h>
#include <sys/time.h>
#include "dsp/dvserialworker.h"
#include "audio/audiofifo.h"
@ -182,3 +183,10 @@ void DVSerialWorker::upsample6(short *in, int nbSamplesIn, unsigned char channel
m_fifoSlots[fifoSlot].m_upsamplerLastValue = in[i];
}
}
long long DVSerialWorker::getUSecs()
{
struct timeval tp;
gettimeofday(&tp, 0);
return (long long) tp.tv_sec * 1000000L + tp.tv_usec;
}

View File

@ -152,6 +152,7 @@ private:
};
void upsample6(short *in, int nbSamplesIn, unsigned char channels, unsigned int fifoSlot);
static long long getUSecs();
SerialDV::DVController m_dvController;
bool m_running;