mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 01:06:35 -04:00
SDRDaemon input: differentiate SDRdaemon samples struct from internal DSP sample struct
This commit is contained in:
parent
9bafb2d9b3
commit
4448b57b60
@ -174,7 +174,7 @@ void SDRdaemonSourceBuffer::checkSlotData(int slotIndex)
|
|||||||
if (sampleRate > 0)
|
if (sampleRate > 0)
|
||||||
{
|
{
|
||||||
int64_t ts = m_currentMeta.m_tv_sec * 1000000LL + m_currentMeta.m_tv_usec;
|
int64_t ts = m_currentMeta.m_tv_sec * 1000000LL + m_currentMeta.m_tv_usec;
|
||||||
ts -= (rwDelayBytes * 1000000LL) / (sampleRate * sizeof(Sample));
|
ts -= (rwDelayBytes * 1000000LL) / (sampleRate * sizeof(SDRdaemonSample));
|
||||||
m_tvOut_sec = ts / 1000000LL;
|
m_tvOut_sec = ts / 1000000LL;
|
||||||
m_tvOut_usec = ts - (m_tvOut_sec * 1000000LL);
|
m_tvOut_usec = ts - (m_tvOut_sec * 1000000LL);
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Sample
|
struct SDRdaemonSample
|
||||||
{
|
{
|
||||||
int16_t i;
|
int16_t i;
|
||||||
int16_t q;
|
int16_t q;
|
||||||
@ -68,12 +68,12 @@ public:
|
|||||||
uint8_t filler;
|
uint8_t filler;
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int samplesPerBlock = (SDRDAEMONSOURCE_UDPSIZE - sizeof(Header)) / sizeof(Sample);
|
static const int samplesPerBlock = (SDRDAEMONSOURCE_UDPSIZE - sizeof(Header)) / sizeof(SDRdaemonSample);
|
||||||
static const int framesSize = SDRDAEMONSOURCE_NBDECODERSLOTS * (SDRDAEMONSOURCE_NBORIGINALBLOCKS - 1) * (SDRDAEMONSOURCE_UDPSIZE - sizeof(Header));
|
static const int framesSize = SDRDAEMONSOURCE_NBDECODERSLOTS * (SDRDAEMONSOURCE_NBORIGINALBLOCKS - 1) * (SDRDAEMONSOURCE_UDPSIZE - sizeof(Header));
|
||||||
|
|
||||||
struct ProtectedBlock
|
struct ProtectedBlock
|
||||||
{
|
{
|
||||||
Sample samples[samplesPerBlock];
|
SDRdaemonSample samples[samplesPerBlock];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SuperBlock
|
struct SuperBlock
|
||||||
|
Loading…
Reference in New Issue
Block a user