1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-17 16:24:08 -04:00

Local output plugin and fixes

This commit is contained in:
f4exb
2019-05-10 23:38:52 +02:00
parent ba4c8d7a68
commit 8029194c02
42 changed files with 2386 additions and 43 deletions
@@ -43,8 +43,7 @@ MESSAGE_CLASS_DEFINITION(LocalInput::MsgReportSampleRateAndFrequency, Message)
LocalInput::LocalInput(DeviceAPI *deviceAPI) :
m_deviceAPI(deviceAPI),
m_settings(),
m_deviceDescription("LocalInput"),
m_startingTimeStamp(0)
m_deviceDescription("LocalInput")
{
m_sampleFifo.setSize(96000 * 4);
@@ -160,11 +159,6 @@ void LocalInput::setCenterFrequency(qint64 centerFrequency)
}
}
std::time_t LocalInput::getStartingTimeStamp() const
{
return m_startingTimeStamp;
}
bool LocalInput::handleMessage(const Message& message)
{
if (DSPSignalNotification::match(message))
+3 -5
View File
@@ -15,8 +15,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDE_REMOTEINPUT_H
#define INCLUDE_REMOTEINPUT_H
#ifndef INCLUDE_LOCALINPUT_H
#define INCLUDE_LOCALINPUT_H
#include <ctime>
#include <iostream>
@@ -139,7 +139,6 @@ public:
virtual void setSampleRate(int sampleRate);
virtual quint64 getCenterFrequency() const;
virtual void setCenterFrequency(qint64 centerFrequency);
std::time_t getStartingTimeStamp() const;
virtual bool handleMessage(const Message& message);
@@ -174,7 +173,6 @@ private:
int m_sampleRate;
QString m_remoteAddress;
QString m_deviceDescription;
std::time_t m_startingTimeStamp;
FileRecord *m_fileSink; //!< File sink to record device I/Q output
QNetworkAccessManager *m_networkManager;
QNetworkRequest m_networkRequest;
@@ -189,4 +187,4 @@ private slots:
void networkManagerFinished(QNetworkReply *reply);
};
#endif // INCLUDE_REMOTEINPUT_H
#endif // INCLUDE_LOCALINPUT_H
@@ -15,8 +15,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
#ifndef INCLUDE_REMOTEINPUTGUI_H
#define INCLUDE_REMOTEINPUTGUI_H
#ifndef INCLUDE_LOCALINPUTGUI_H
#define INCLUDE_LOCALINPUTGUI_H
#include <QTimer>
#include <QWidget>
@@ -124,4 +124,4 @@ private slots:
void openDeviceSettingsDialog(const QPoint& p);
};
#endif // INCLUDE_REMOTEINPUTGUI_H
#endif // INCLUDE_LOCALINPUTGUI_H