mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
LimeSDR input: channel #0 streaming
This commit is contained in:
parent
d3312c90d4
commit
54f3a51203
@ -51,6 +51,16 @@ LimeSDRInput::~LimeSDRInput()
|
|||||||
|
|
||||||
bool LimeSDRInput::openDevice()
|
bool LimeSDRInput::openDevice()
|
||||||
{
|
{
|
||||||
|
if (!m_sampleFifo.setSize(96000 * 4))
|
||||||
|
{
|
||||||
|
qCritical("LimeSDRInput::openDevice: could not allocate SampleFifo");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
qDebug("LimeSDRInput::openDevice: allocated SampleFifo");
|
||||||
|
}
|
||||||
|
|
||||||
// look for Rx buddies and get reference to common parameters
|
// look for Rx buddies and get reference to common parameters
|
||||||
// if there is a channel left take the first available
|
// if there is a channel left take the first available
|
||||||
if (m_deviceAPI->getSourceBuddies().size() > 0) // look source sibling first
|
if (m_deviceAPI->getSourceBuddies().size() > 0) // look source sibling first
|
||||||
|
@ -156,7 +156,7 @@ void LimeSDRInputGUI::handleMessagesToGUI()
|
|||||||
DSPSignalNotification* notif = (DSPSignalNotification*) message;
|
DSPSignalNotification* notif = (DSPSignalNotification*) message;
|
||||||
m_sampleRate = notif->getSampleRate();
|
m_sampleRate = notif->getSampleRate();
|
||||||
m_deviceCenterFrequency = notif->getCenterFrequency();
|
m_deviceCenterFrequency = notif->getCenterFrequency();
|
||||||
qDebug("BladerfGui::handleDSPMessages: SampleRate:%d, CenterFrequency:%llu", notif->getSampleRate(), notif->getCenterFrequency());
|
qDebug("LimeSDRInputGUI::handleMessagesToGUI: SampleRate:%d, CenterFrequency:%llu", notif->getSampleRate(), notif->getCenterFrequency());
|
||||||
updateSampleRateAndFrequency();
|
updateSampleRateAndFrequency();
|
||||||
m_fileSink->handleMessage(*notif); // forward to file sink
|
m_fileSink->handleMessage(*notif); // forward to file sink
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user