DV Serial: prepare multi slot (4)

pull/27/head v2.1.6
f4exb 2016-10-12 00:53:26 +02:00
rodzic 01c901a8fe
commit 9303a63931
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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;
}

Wyświetl plik

@ -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;