Merge pull request #5490 from Jojo-Schmitz/warning
Fix MinGW and MSVC compiler warnings
This commit is contained in:
commit
3f65eb100e
4 changed files with 4 additions and 2 deletions
|
@ -251,6 +251,7 @@ void PlayPanel::setRelTempo(qreal val)
|
|||
|
||||
void PlayPanel::setGain(float gain) // respond to gainChanged() SIGNAL from MasterSynthesizer
|
||||
{
|
||||
Q_UNUSED(gain);
|
||||
const QSignalBlocker blockVolumeSpinBoxSignals(volSpinBox);
|
||||
volumeSlider->setValue(synti->gainAsDecibels());
|
||||
volLabel();
|
||||
|
|
|
@ -116,6 +116,7 @@ SynthControl::SynthControl(QWidget* parent)
|
|||
// synthesizer has signalled a gain change - update the slider
|
||||
void SynthControl::setGain(float val)
|
||||
{
|
||||
Q_UNUSED(val);
|
||||
gainSlider->setValue(synti->gainAsDecibels());
|
||||
}
|
||||
|
||||
|
|
|
@ -459,7 +459,7 @@
|
|||
<tabstop>effectB</tabstop>
|
||||
<tabstop>masterTuning</tabstop>
|
||||
<tabstop>changeTuningButton</tabstop>
|
||||
<tabstop>gain</tabstop>
|
||||
<tabstop>gainSlider</tabstop>
|
||||
<tabstop>saveButton</tabstop>
|
||||
<tabstop>loadButton</tabstop>
|
||||
<tabstop>storeButton</tabstop>
|
||||
|
|
|
@ -47,7 +47,7 @@ class MasterSynthesizer : public QObject {
|
|||
public:
|
||||
static const int MAX_BUFFERSIZE = 8192;
|
||||
static const int MAX_EFFECTS = 2;
|
||||
static constexpr float defaultGain = 0.1; // -20dB
|
||||
static constexpr float defaultGain = 0.1f; // -20dB
|
||||
|
||||
private:
|
||||
std::atomic<bool> lock1 { false };
|
||||
|
|
Loading…
Reference in a new issue