mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
DV Serial: prepare multi slot (4)
This commit is contained in:
parent
01c901a8fe
commit
9303a63931
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user