mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-27 22:59:28 -04:00
UDPSink plugin: mono samples are FixReal not Real
This commit is contained in:
parent
32510091df
commit
79fe07efe1
@ -113,10 +113,10 @@ void UDPSinkUDPHandler::moveData()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDPSinkUDPHandler::readSample(Real &t)
|
void UDPSinkUDPHandler::readSample(FixReal &t)
|
||||||
{
|
{
|
||||||
memcpy(&t, &m_udpBuf[m_readFrameIndex][m_readIndex], sizeof(Real));
|
memcpy(&t, &m_udpBuf[m_readFrameIndex][m_readIndex], sizeof(FixReal));
|
||||||
advanceReadPointer((int) sizeof(Real));
|
advanceReadPointer((int) sizeof(FixReal));
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDPSinkUDPHandler::readSample(Sample &s)
|
void UDPSinkUDPHandler::readSample(Sample &s)
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
void resetReadIndex();
|
void resetReadIndex();
|
||||||
void resizeBuffer(float sampleRate);
|
void resizeBuffer(float sampleRate);
|
||||||
|
|
||||||
void readSample(Real &t);
|
void readSample(FixReal &t);
|
||||||
void readSample(Sample &s);
|
void readSample(Sample &s);
|
||||||
|
|
||||||
void setFeedbackMessageQueue(MessageQueue *messageQueue) { m_feedbackMessageQueue = messageQueue; }
|
void setFeedbackMessageQueue(MessageQueue *messageQueue) { m_feedbackMessageQueue = messageQueue; }
|
||||||
|
Loading…
Reference in New Issue
Block a user