mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Test Sink fixes
This commit is contained in:
parent
d63f1a3ed5
commit
8412260d5a
@ -139,7 +139,7 @@ bool TestSinkGui::handleMessage(const Message& message)
|
||||
else if (TestSinkOutput::MsgStartStop::match(message))
|
||||
{
|
||||
TestSinkOutput::MsgStartStop& notif = (TestSinkOutput::MsgStartStop&) message;
|
||||
qDebug("TestSinkOutput::handleMessage: message: MsgStartStop: %s", notif.getStartStop() ? "start" : "stop");
|
||||
qDebug("TestSinkGui::handleMessage: message: MsgStartStop: %s", notif.getStartStop() ? "start" : "stop");
|
||||
blockApplySettings(true);
|
||||
ui->startStop->setChecked(notif.getStartStop());
|
||||
blockApplySettings(false);
|
||||
@ -161,7 +161,7 @@ void TestSinkGui::handleInputMessages()
|
||||
if (DSPSignalNotification::match(*message))
|
||||
{
|
||||
DSPSignalNotification* notif = (DSPSignalNotification*) message;
|
||||
qDebug("FileSinkGui::handleInputMessages: DSPSignalNotification: SampleRate:%d, CenterFrequency:%llu", notif->getSampleRate(), notif->getCenterFrequency());
|
||||
qDebug("TestSinkGui::handleInputMessages: DSPSignalNotification: SampleRate:%d, CenterFrequency:%llu", notif->getSampleRate(), notif->getCenterFrequency());
|
||||
m_sampleRate = notif->getSampleRate();
|
||||
m_deviceCenterFrequency = notif->getCenterFrequency();
|
||||
updateSampleRateAndFrequency();
|
||||
@ -198,7 +198,6 @@ void TestSinkGui::sendSettings()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void TestSinkGui::updateHardware()
|
||||
{
|
||||
qDebug() << "TestSinkGui::updateHardware";
|
||||
|
@ -74,9 +74,7 @@ private:
|
||||
|
||||
void blockApplySettings(bool block) { m_doApplySettings = !block; }
|
||||
void displaySettings();
|
||||
void displayTime();
|
||||
void sendSettings();
|
||||
void configureFileName();
|
||||
void updateSampleRateAndFrequency();
|
||||
|
||||
private slots:
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include "testsinkplugin.h"
|
||||
|
||||
const PluginDescriptor TestSinkPlugin::m_pluginDescriptor = {
|
||||
QString("Test sink output"),
|
||||
QString("Test Sink Output"),
|
||||
QString("4.11.12"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
|
@ -167,12 +167,6 @@ void TestSinkThread::tick()
|
||||
m_throttleToggle = !m_throttleToggle;
|
||||
}
|
||||
|
||||
// if (m_throttlems > m_maxThrottlems)
|
||||
// {
|
||||
// qDebug("FileSinkThread::tick: m_maxThrottlems: %d", m_maxThrottlems);
|
||||
// m_maxThrottlems = m_throttlems;
|
||||
// }
|
||||
|
||||
SampleVector::iterator readUntil;
|
||||
|
||||
m_sampleFifo->readAdvance(readUntil, m_samplesChunkSize);
|
||||
@ -214,6 +208,5 @@ void TestSinkThread::tick()
|
||||
|
||||
//m_ofstream->write(reinterpret_cast<char*>(m_buf), m_samplesChunkSize*(1<<m_log2Interpolation)*2*sizeof(int16_t));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user