18 #ifndef INCLUDE_LOCALSINK_H_ 19 #define INCLUDE_LOCALSINK_H_ 23 #include <QNetworkRequest> 34 class QNetworkAccessManager;
100 m_log2Decim(log2Decim),
101 m_filterChainHash(filterChainHash)
109 virtual void feed(
const SampleVector::const_iterator& begin,
const SampleVector::const_iterator& end,
bool po);
110 virtual void start();
115 virtual void getTitle(QString& title) { title =
"Local Sink"; }
127 (void) sinkElseSource;
133 QString& errorMessage);
137 const QStringList& channelSettingsKeys,
139 QString& errorMessage);
147 void setChannelizer(
unsigned int log2Decim,
unsigned int filterChainHash);
int64_t m_frequencyOffset
void networkManagerFinished(QNetworkReply *reply)
uint64_t m_centerFrequency
virtual qint64 getCenterFrequency() const
Applies to a default stream.
DeviceSampleSource * getLocalDevice(uint32_t index)
virtual QByteArray serialize() const
virtual int webapiSettingsPutPatch(bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
DownChannelizer * m_channelizer
uint32_t m_deviceSampleRate
virtual int getNbSinkStreams() const
void setCenterFrequency(uint64_t centerFrequency)
void samplesAvailable(const quint8 *data, uint count)
MsgSampleRateNotification(int sampleRate)
virtual bool deserialize(const QByteArray &data)
ThreadedBasebandSampleSink * m_threadedChannelizer
void webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings &response, const LocalSinkSettings &settings)
virtual int webapiSettingsGet(SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
void setSampleRate(uint32_t sampleRate)
void applySettings(const LocalSinkSettings &settings, bool force=false)
LocalSink(DeviceAPI *deviceAPI)
#define MESSAGE_CLASS_DECLARATION
static MsgSampleRateNotification * create(int sampleRate)
QNetworkRequest m_networkRequest
virtual bool handleMessage(const Message &cmd)
Processing of a message. Returns true if message has actually been processed.
void propagateSampleRateAndFrequency(uint32_t index)
void webapiReverseSendSettings(QList< QString > &channelSettingsKeys, const LocalSinkSettings &settings, bool force)
virtual int getNbSourceStreams() const
static const QString m_channelId
virtual void getTitle(QString &title)
int getSampleRate() const
LocalSinkSettings m_settings
LocalSinkThread * m_sinkThread
virtual qint64 getStreamCenterFrequency(int streamIndex, bool sinkElseSource) const
static const QString m_channelIdURI
void validateFilterChainHash(LocalSinkSettings &settings)
QNetworkAccessManager * m_networkManager
void getLocalDevices(std::vector< uint32_t > &indexes)
void calculateFrequencyOffset()
virtual void getIdentifier(QString &id)
virtual void feed(const SampleVector::const_iterator &begin, const SampleVector::const_iterator &end, bool po)
void setChannelizer(unsigned int log2Decim, unsigned int filterChainHash)
unsigned __int64 uint64_t