18 #ifndef INCLUDE_LOCALSOURCE_H_ 19 #define INCLUDE_LOCALSOURCE_H_ 23 #include <QNetworkRequest> 35 class QNetworkAccessManager;
101 m_log2Interp(log2Interp),
102 m_filterChainHash(filterChainHash)
112 virtual void start();
117 virtual void getTitle(QString& title) { title =
"Local Sink"; }
129 (void) sinkElseSource;
135 QString& errorMessage);
139 const QStringList& channelSettingsKeys,
141 QString& errorMessage);
149 void setChannelizer(
unsigned int log2Interp,
unsigned int filterChainHash);
int getSampleRate() const
void pullSamples(unsigned int count)
void processSamples(int offset)
std::vector< Sample > SampleVector
static const QString m_channelId
ThreadedBasebandSampleSource * m_threadedChannelizer
SampleSourceFifo * m_localSampleSourceFifo
uint64_t m_centerFrequency
virtual bool deserialize(const QByteArray &data)
virtual int webapiSettingsGet(SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
void networkManagerFinished(QNetworkReply *reply)
QNetworkAccessManager * m_networkManager
void setSampleRate(uint32_t sampleRate)
static const QString m_channelIdURI
virtual int webapiSettingsPutPatch(bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
QNetworkRequest m_networkRequest
void getLocalDevices(std::vector< uint32_t > &indexes)
virtual qint64 getStreamCenterFrequency(int streamIndex, bool sinkElseSource) const
LocalSource(DeviceAPI *deviceAPI)
void calculateFrequencyOffset()
static MsgSampleRateNotification * create(int sampleRate)
virtual QByteArray serialize() const
virtual void pull(Sample &sample)
int64_t m_frequencyOffset
void setChannelizer(unsigned int log2Interp, unsigned int filterChainHash)
void validateFilterChainHash(LocalSourceSettings &settings)
uint32_t m_deviceSampleRate
virtual qint64 getCenterFrequency() const
Applies to a default stream.
#define MESSAGE_CLASS_DECLARATION
DeviceSampleSink * getLocalDevice(uint32_t index)
virtual void pullAudio(int nbSamples)
virtual int getNbSourceStreams() const
UpChannelizer * m_channelizer
virtual void getIdentifier(QString &id)
void propagateSampleRateAndFrequency(uint32_t index)
void setCenterFrequency(uint64_t centerFrequency)
virtual void getTitle(QString &title)
void applySettings(const LocalSourceSettings &settings, bool force=false)
virtual bool handleMessage(const Message &cmd)
Processing of a message. Returns true if message has actually been processed.
LocalSourceThread * m_sinkThread
int m_localSamplesIndexOffset
void webapiReverseSendSettings(QList< QString > &channelSettingsKeys, const LocalSourceSettings &settings, bool force)
SampleVector m_localSamples
void webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings &response, const LocalSourceSettings &settings)
LocalSourceSettings m_settings
MsgSampleRateNotification(int sampleRate)
virtual int getNbSinkStreams() const
unsigned __int64 uint64_t