kopia lustrzana https://github.com/f4exb/sdrangel
Tx plugins: fixed VU meter handling
rodzic
fb242d15d3
commit
12735f26a9
|
@ -97,7 +97,8 @@ void AMModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
const PluginDescriptor AMModPlugin::m_pluginDescriptor = {
|
||||
QString("AM Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -52,10 +52,10 @@ public:
|
|||
unsigned int getFeedbackAudioSampleRate() const { return m_feedbackAudioSampleRate; }
|
||||
CWKeyer& getCWKeyer() { return m_cwKeyer; }
|
||||
double getMagSq() const { return m_magsq; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
void applySettings(const AMModSettings& settings, bool force = false);
|
||||
|
@ -94,8 +94,8 @@ private:
|
|||
AudioFifo m_feedbackAudioFifo;
|
||||
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -96,7 +96,8 @@ void ATVModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -55,10 +55,10 @@ public:
|
|||
void getCameraNumbers(std::vector<int>& numbers);
|
||||
|
||||
void setMessageQueueToGUI(MessageQueue *messageQueue) { m_messageQueueToGUI = messageQueue; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
|
||||
|
@ -172,8 +172,8 @@ private:
|
|||
|
||||
MovingAverageUtil<double, double, 16> m_movingAverage;
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -93,7 +93,8 @@ void FreeDVModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
const PluginDescriptor FreeDVModPlugin::m_pluginDescriptor = {
|
||||
QString("FreeDV Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -52,10 +52,10 @@ public:
|
|||
void applyAudioSampleRate(unsigned int sampleRate);
|
||||
CWKeyer& getCWKeyer() { return m_cwKeyer; }
|
||||
double getMagSq() const { return m_magsq; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
unsigned int getAudioSampleRate() const { return m_audioSampleRate; }
|
||||
|
@ -106,8 +106,8 @@ private:
|
|||
AudioFifo m_audioFifo;
|
||||
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -97,7 +97,8 @@ void NFMModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
const PluginDescriptor NFMModPlugin::m_pluginDescriptor = {
|
||||
QString("NFM Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -274,7 +274,7 @@ void NFMModSource::calculateLevel(Real& sample)
|
|||
}
|
||||
else
|
||||
{
|
||||
qreal rmsLevel = sqrt(m_levelSum / m_levelNbSamples);
|
||||
m_rmsLevel = sqrt(m_levelSum / m_levelNbSamples);
|
||||
m_peakLevelOut = m_peakLevel;
|
||||
m_peakLevel = 0.0f;
|
||||
m_levelSum = 0.0f;
|
||||
|
|
|
@ -55,10 +55,10 @@ public:
|
|||
unsigned int getFeedbackAudioSampleRate() const { return m_feedbackAudioSampleRate; }
|
||||
CWKeyer& getCWKeyer() { return m_cwKeyer; }
|
||||
double getMagSq() const { return m_magsq; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
void applySettings(const NFMModSettings& settings, bool force = false);
|
||||
|
@ -103,8 +103,8 @@ private:
|
|||
AudioFifo m_feedbackAudioFifo;
|
||||
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -97,7 +97,8 @@ void SSBModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
const PluginDescriptor SSBModPlugin::m_pluginDescriptor = {
|
||||
QString("SSB Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -55,10 +55,10 @@ public:
|
|||
unsigned int getFeedbackAudioSampleRate() const { return m_feedbackAudioSampleRate; }
|
||||
CWKeyer& getCWKeyer() { return m_cwKeyer; }
|
||||
double getMagSq() const { return m_magsq; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
void applySettings(const SSBModSettings& settings, bool force = false);
|
||||
|
@ -113,8 +113,8 @@ private:
|
|||
AudioFifo m_feedbackAudioFifo;
|
||||
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -93,7 +93,8 @@ void WFMModBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
const PluginDescriptor WFMModPlugin::m_pluginDescriptor = {
|
||||
QString("WFM Modulator"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -51,10 +51,10 @@ public:
|
|||
unsigned int getAudioSampleRate() const { return m_audioSampleRate; }
|
||||
CWKeyer& getCWKeyer() { return m_cwKeyer; }
|
||||
double getMagSq() const { return m_magsq; }
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
void applySettings(const WFMModSettings& settings, bool force = false);
|
||||
|
@ -89,8 +89,8 @@ private:
|
|||
AudioFifo m_audioFifo;
|
||||
|
||||
quint32 m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
Real m_levelSum;
|
||||
|
||||
|
|
|
@ -94,7 +94,8 @@ void UDPSourceBaseband::handleData()
|
|||
unsigned int ipart1end;
|
||||
unsigned int ipart2begin;
|
||||
unsigned int ipart2end;
|
||||
Real rmsLevel, peakLevel, numSamples;
|
||||
qreal rmsLevel, peakLevel;
|
||||
int numSamples;
|
||||
|
||||
unsigned int remainder = m_sampleFifo.remainder();
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
const PluginDescriptor UDPSourcePlugin::m_pluginDescriptor = {
|
||||
QString("UDP Channel Source"),
|
||||
QString("4.12.1"),
|
||||
QString("4.12.2"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
|
|
@ -55,10 +55,10 @@ public:
|
|||
void applyChannelSettings(int channelSampleRate, int channelFrequencyOffset, bool force = false);
|
||||
void applySettings(const UDPSourceSettings& settings, bool force = false);
|
||||
|
||||
void getLevels(Real& rmsLevel, Real& peakLevel, Real& numSamples) const
|
||||
void getLevels(qreal& rmsLevel, qreal& peakLevel, int& numSamples) const
|
||||
{
|
||||
rmsLevel = m_rmsLevel;
|
||||
peakLevel = m_peakLevel;
|
||||
peakLevel = m_peakLevelOut;
|
||||
numSamples = m_levelNbSamples;
|
||||
}
|
||||
|
||||
|
@ -96,8 +96,8 @@ private:
|
|||
int m_sampleRateAvgCounter;
|
||||
|
||||
int m_levelCalcCount;
|
||||
Real m_rmsLevel;
|
||||
Real m_peakLevelOut;
|
||||
qreal m_rmsLevel;
|
||||
qreal m_peakLevelOut;
|
||||
Real m_peakLevel;
|
||||
double m_levelSum;
|
||||
int m_levelNbSamples;
|
||||
|
|
Ładowanie…
Reference in New Issue