1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00

SDRdaemon source: use settings structure in source

This commit is contained in:
f4exb 2017-11-19 18:17:28 +01:00
parent d0572a6f84
commit 5ba857f278
2 changed files with 3 additions and 6 deletions

View File

@ -44,8 +44,6 @@ SDRdaemonSourceInput::SDRdaemonSourceInput(DeviceSourceAPI *deviceAPI) :
m_port(9090),
m_SDRdaemonUDPHandler(0),
m_deviceDescription(),
m_sampleRate(0),
m_centerFrequency(0),
m_startingTimeStamp(0),
m_masterTimer(deviceAPI->getMasterTimer()),
m_autoFollowRate(false),
@ -96,12 +94,12 @@ const QString& SDRdaemonSourceInput::getDeviceDescription() const
int SDRdaemonSourceInput::getSampleRate() const
{
return m_sampleRate;
return m_settings.m_sampleRate;
}
quint64 SDRdaemonSourceInput::getCenterFrequency() const
{
return m_centerFrequency;
return m_settings.m_centerFrequency;
}
std::time_t SDRdaemonSourceInput::getStartingTimeStamp() const

View File

@ -323,12 +323,11 @@ public:
private:
DeviceSourceAPI *m_deviceAPI;
QMutex m_mutex;
SDRdaemonSourceSettings m_settings;
QString m_address;
quint16 m_port;
SDRdaemonSourceUDPHandler* m_SDRdaemonUDPHandler;
QString m_deviceDescription;
int m_sampleRate;
quint64 m_centerFrequency;
std::time_t m_startingTimeStamp;
const QTimer& m_masterTimer;
bool m_autoFollowRate;