1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

more debug messages

This commit is contained in:
f4exb 2015-08-10 22:15:16 +02:00
parent 058fcdc4e1
commit 85897281ee
3 changed files with 14 additions and 4 deletions

View File

@ -166,11 +166,12 @@ bool BladerfInput::startInput(int device)
}
m_bladerfThread->startWork();
m_deviceDescription = "BladeRF";
mutexLocker.unlock();
applySettings(m_generalSettings, m_settings, true);
qDebug("bladerfInput: start");
qDebug("BladerfInput::startInput: started");
//MsgReportBladerf::create(m_gains)->submit(m_guiMessageQueue); Pass anything here
return true;

View File

@ -138,9 +138,11 @@ bool FileSourceInput::startInput(int device)
m_fileSourceThread->setSamplerate(m_sampleRate);
m_fileSourceThread->connectTimer(m_masterTimer);
m_fileSourceThread->startWork();
m_deviceDescription = "FileSource";
mutexLocker.unlock();
//applySettings(m_generalSettings, m_settings, true);
qDebug("FileSourceInput::startInput: started");
MsgReportFileSourceAcquisition::create(true)->submit(m_guiMessageQueue); // acquisition on

View File

@ -291,21 +291,28 @@ DSPEngine::State DSPEngine::gotoRunning()
break;
}
if(m_sampleSource == NULL)
if(m_sampleSource == NULL) {
return gotoError("No sample source configured");
}
m_iOffset = 0;
m_qOffset = 0;
m_iRange = 1 << 16;
m_qRange = 1 << 16;
if(!m_sampleSource->startInput(0))
if(!m_sampleSource->startInput(0)) {
return gotoError("Could not start sample source");
}
m_deviceDescription = m_sampleSource->getDeviceDescription();
qDebug() << "DSPEngine::gotoRunning: " << m_deviceDescription.toStdString().c_str() << " started";
m_audioOutput.start(0, 48000);
for(SampleSinks::const_iterator it = m_sampleSinks.begin(); it != m_sampleSinks.end(); it++)
for(SampleSinks::const_iterator it = m_sampleSinks.begin(); it != m_sampleSinks.end(); it++) {
(*it)->start();
}
m_sampleRate = 0; // make sure, report is sent
generateReport();