18 #ifndef PLUGINS_CHANNELTX_MODAM_AMMOD_H_ 19 #define PLUGINS_CHANNELTX_MODAM_AMMOD_H_ 26 #include <QNetworkRequest> 41 class QNetworkAccessManager;
92 m_sampleRate(sampleRate),
93 m_centerFrequency(centerFrequency)
135 m_seekPercentage(seekPercentage)
173 m_samplesCount(samplesCount)
185 quint32 recordLength)
195 quint32 recordLength) :
197 m_sampleRate(sampleRate),
198 m_recordLength(recordLength)
210 virtual void start();
227 (void) sinkElseSource;
233 QString& errorMessage);
237 const QStringList& channelSettingsKeys,
239 QString& errorMessage);
243 QString& errorMessage);
259 void levelChanged(qreal rmsLevel, qreal peakLevel,
int numSamples);
326 void applyChannelSettings(
int basebandSampleRate,
int outputSampleRate,
int inputFrequencyOffset,
bool force =
false);
virtual void getIdentifier(QString &id)
void applySettings(const AMModSettings &settings, bool force=false)
static const int m_levelNbSamples
std::vector< Sample > SampleVector
static const QString m_channelIdURI
void applyChannelSettings(int basebandSampleRate, int outputSampleRate, int inputFrequencyOffset, bool force=false)
std::vector< AudioSample > AudioVector
void webapiFormatChannelReport(SWGSDRangel::SWGChannelReport &response)
AudioVector m_feedbackAudioBuffer
Real m_interpolatorDistanceRemain
Real m_feedbackInterpolatorDistanceRemain
virtual int webapiReportGet(SWGSDRangel::SWGChannelReport &response, QString &errorMessage)
virtual void pullAudio(int nbSamples)
virtual bool handleMessage(const Message &cmd)
Processing of a message. Returns true if message has actually been processed.
void pushFeedback(Real sample)
void seekFileStream(int seekPercentage)
virtual qint64 getCenterFrequency() const
Applies to a default stream.
int getSampleRate() const
virtual int getNbSinkStreams() const
virtual bool deserialize(const QByteArray &data)
Interpolator m_interpolator
quint32 m_audioSampleRate
void processOneSample(Complex &ci)
void levelChanged(qreal rmsLevel, qreal peakLevel, int numSamples)
static MsgReportFileSourceStreamTiming * create(std::size_t samplesCount)
QNetworkRequest m_networkRequest
std::size_t getSamplesCount() const
virtual qint64 getStreamCenterFrequency(int streamIndex, bool sinkElseSource) const
uint m_feedbackAudioBufferFill
virtual QByteArray serialize() const
virtual void getTitle(QString &title)
quint32 getRecordLength() const
bool m_feedbackInterpolatorConsumed
std::size_t m_samplesCount
int m_inputFrequencyOffset
static MsgReportFileSourceStreamData * create(int sampleRate, quint32 recordLength)
#define MESSAGE_CLASS_DECLARATION
virtual int webapiSettingsGet(SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
quint64 m_fileSize
raw file size (bytes)
void pullAF(Real &sample)
virtual void pull(Sample &sample)
AudioVector m_audioBuffer
void webapiFormatChannelSettings(SWGSDRangel::SWGChannelSettings &response, const AMModSettings &settings)
void webapiReverseSendSettings(QList< QString > &channelSettingsKeys, const AMModSettings &settings, bool force)
QNetworkAccessManager * m_networkManager
Real m_interpolatorDistance
void applyFeedbackAudioSampleRate(unsigned int sampleRate)
static const QString m_channelId
void webapiReverseSendCWSettings(const CWKeyerSettings &settings)
void calculateLevel(Real &sample)
qint64 m_inputFrequencyOffset
ThreadedBasebandSampleSource * m_threadedChannelizer
MovingAverageUtil< double, double, 16 > m_movingAverage
void networkManagerFinished(QNetworkReply *reply)
quint32 m_recordLength
record length in seconds computed from file size
AMMod(DeviceAPI *deviceAPI)
void applyAudioSampleRate(int sampleRate)
virtual int getNbSourceStreams() const
UpChannelizer * m_channelizer
Interpolator m_feedbackInterpolator
quint32 m_feedbackAudioSampleRate
bool m_interpolatorConsumed
SampleVector m_sampleBuffer
MsgReportFileSourceStreamTiming(std::size_t samplesCount)
std::complex< Real > Complex
AudioFifo m_feedbackAudioFifo
virtual int webapiSettingsPutPatch(bool force, const QStringList &channelSettingsKeys, SWGSDRangel::SWGChannelSettings &response, QString &errorMessage)
Real m_feedbackInterpolatorDistance
MsgReportFileSourceStreamData(int sampleRate, quint32 recordLength)