mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Remote input/sink implemented remote control. Implements #1074
This commit is contained in:
@@ -38,23 +38,23 @@ class RemoteInputUDPHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
class MsgReportSampleRateChange : public Message {
|
||||
class MsgReportMetaDataChange : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
public:
|
||||
int getSampleRate() const { return m_sampleRate; }
|
||||
const RemoteMetaDataFEC& getMetaData() const { return m_metaData; }
|
||||
|
||||
static MsgReportSampleRateChange* create(int sampleRate)
|
||||
static MsgReportMetaDataChange* create(const RemoteMetaDataFEC& metaData)
|
||||
{
|
||||
return new MsgReportSampleRateChange(sampleRate);
|
||||
return new MsgReportMetaDataChange(metaData);
|
||||
}
|
||||
|
||||
protected:
|
||||
int m_sampleRate;
|
||||
RemoteMetaDataFEC m_metaData;
|
||||
|
||||
MsgReportSampleRateChange(int sampleRate) :
|
||||
MsgReportMetaDataChange(const RemoteMetaDataFEC& metaData) :
|
||||
Message(),
|
||||
m_sampleRate(sampleRate)
|
||||
m_metaData(metaData)
|
||||
{ }
|
||||
};
|
||||
|
||||
@@ -79,9 +79,6 @@ public:
|
||||
public slots:
|
||||
void dataReadyRead();
|
||||
|
||||
signals:
|
||||
void metaChanged();
|
||||
|
||||
private:
|
||||
class MsgUDPAddressAndPort : public Message {
|
||||
MESSAGE_CLASS_DECLARATION
|
||||
|
||||
Reference in New Issue
Block a user