mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Fix some LLVM 17 compiler warnings
This commit is contained in:
parent
951b873c14
commit
2fb19ffd8f
176 changed files with 867 additions and 894 deletions
|
|
@ -143,15 +143,15 @@ void resetAll (Processors&... processors)
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
class DspModulePluginDemo : public AudioProcessor,
|
||||
private ValueTree::Listener
|
||||
class DspModulePluginDemo : public AudioProcessor,
|
||||
private ValueTree::Listener
|
||||
{
|
||||
public:
|
||||
DspModulePluginDemo()
|
||||
: DspModulePluginDemo (AudioProcessorValueTreeState::ParameterLayout{}) {}
|
||||
|
||||
//==============================================================================
|
||||
void prepareToPlay (double sampleRate, int samplesPerBlock) override
|
||||
void prepareToPlay (double sampleRate, int samplesPerBlock) final
|
||||
{
|
||||
const auto channels = jmax (getTotalNumInputChannels(), getTotalNumOutputChannels());
|
||||
|
||||
|
|
@ -163,15 +163,15 @@ public:
|
|||
reset();
|
||||
}
|
||||
|
||||
void reset() override
|
||||
void reset() final
|
||||
{
|
||||
chain.reset();
|
||||
update();
|
||||
}
|
||||
|
||||
void releaseResources() override {}
|
||||
void releaseResources() final {}
|
||||
|
||||
void processBlock (AudioBuffer<float>& buffer, MidiBuffer&) override
|
||||
void processBlock (AudioBuffer<float>& buffer, MidiBuffer&) final
|
||||
{
|
||||
if (jmax (getTotalNumInputChannels(), getTotalNumOutputChannels()) == 0)
|
||||
return;
|
||||
|
|
@ -195,43 +195,43 @@ public:
|
|||
chain.process (dsp::ProcessContextReplacing<float> (inoutBlock));
|
||||
}
|
||||
|
||||
void processBlock (AudioBuffer<double>&, MidiBuffer&) override {}
|
||||
void processBlock (AudioBuffer<double>&, MidiBuffer&) final {}
|
||||
|
||||
//==============================================================================
|
||||
AudioProcessorEditor* createEditor() override { return nullptr; }
|
||||
bool hasEditor() const override { return false; }
|
||||
|
||||
//==============================================================================
|
||||
const String getName() const override { return "DSPModulePluginDemo"; }
|
||||
const String getName() const final { return "DSPModulePluginDemo"; }
|
||||
|
||||
bool acceptsMidi() const override { return false; }
|
||||
bool producesMidi() const override { return false; }
|
||||
bool isMidiEffect() const override { return false; }
|
||||
bool acceptsMidi() const final { return false; }
|
||||
bool producesMidi() const final { return false; }
|
||||
bool isMidiEffect() const final { return false; }
|
||||
|
||||
double getTailLengthSeconds() const override { return 0.0; }
|
||||
double getTailLengthSeconds() const final { return 0.0; }
|
||||
|
||||
//==============================================================================
|
||||
int getNumPrograms() override { return 1; }
|
||||
int getCurrentProgram() override { return 0; }
|
||||
void setCurrentProgram (int) override {}
|
||||
const String getProgramName (int) override { return "None"; }
|
||||
int getNumPrograms() final { return 1; }
|
||||
int getCurrentProgram() final { return 0; }
|
||||
void setCurrentProgram (int) final {}
|
||||
const String getProgramName (int) final { return "None"; }
|
||||
|
||||
void changeProgramName (int, const String&) override {}
|
||||
void changeProgramName (int, const String&) final {}
|
||||
|
||||
//==============================================================================
|
||||
bool isBusesLayoutSupported (const BusesLayout& layout) const override
|
||||
bool isBusesLayoutSupported (const BusesLayout& layout) const final
|
||||
{
|
||||
return layout == BusesLayout { { AudioChannelSet::stereo() },
|
||||
{ AudioChannelSet::stereo() } };
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void getStateInformation (MemoryBlock& destData) override
|
||||
void getStateInformation (MemoryBlock& destData) final
|
||||
{
|
||||
copyXmlToBinary (*apvts.copyState().createXml(), destData);
|
||||
}
|
||||
|
||||
void setStateInformation (const void* data, int sizeInBytes) override
|
||||
void setStateInformation (const void* data, int sizeInBytes) final
|
||||
{
|
||||
apvts.replaceState (ValueTree::fromXml (*getXmlFromBinary (data, sizeInBytes)));
|
||||
}
|
||||
|
|
@ -811,7 +811,7 @@ private:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
void valueTreePropertyChanged (ValueTree&, const Identifier&) override
|
||||
void valueTreePropertyChanged (ValueTree&, const Identifier&) final
|
||||
{
|
||||
requiresUpdate.store (true);
|
||||
}
|
||||
|
|
@ -1498,7 +1498,7 @@ private:
|
|||
};
|
||||
|
||||
//==============================================================================
|
||||
class DspModulePluginDemoEditor : public AudioProcessorEditor
|
||||
class DspModulePluginDemoEditor final : public AudioProcessorEditor
|
||||
{
|
||||
public:
|
||||
explicit DspModulePluginDemoEditor (DspModulePluginDemo& p)
|
||||
|
|
@ -1637,7 +1637,7 @@ private:
|
|||
RangedAudioParameter& param;
|
||||
};
|
||||
|
||||
class AttachedSlider : public ComponentWithParamMenu
|
||||
class AttachedSlider final : public ComponentWithParamMenu
|
||||
{
|
||||
public:
|
||||
AttachedSlider (AudioProcessorEditor& editorIn, RangedAudioParameter& paramIn)
|
||||
|
|
@ -1663,7 +1663,7 @@ private:
|
|||
SliderParameterAttachment attachment;
|
||||
};
|
||||
|
||||
class AttachedToggle : public ComponentWithParamMenu
|
||||
class AttachedToggle final : public ComponentWithParamMenu
|
||||
{
|
||||
public:
|
||||
AttachedToggle (AudioProcessorEditor& editorIn, RangedAudioParameter& paramIn)
|
||||
|
|
@ -1682,7 +1682,7 @@ private:
|
|||
ButtonParameterAttachment attachment;
|
||||
};
|
||||
|
||||
class AttachedCombo : public ComponentWithParamMenu
|
||||
class AttachedCombo final : public ComponentWithParamMenu
|
||||
{
|
||||
public:
|
||||
AttachedCombo (AudioProcessorEditor& editorIn, RangedAudioParameter& paramIn)
|
||||
|
|
@ -1795,7 +1795,7 @@ private:
|
|||
grid.performLayout (bounds);
|
||||
}
|
||||
|
||||
struct BasicControls : public Component
|
||||
struct BasicControls final : public Component
|
||||
{
|
||||
explicit BasicControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::MainGroup& state)
|
||||
|
|
@ -1814,7 +1814,7 @@ private:
|
|||
AttachedSlider pan, input, output;
|
||||
};
|
||||
|
||||
struct DistortionControls : public Component
|
||||
struct DistortionControls final : public Component
|
||||
{
|
||||
explicit DistortionControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::DistortionGroup& state)
|
||||
|
|
@ -1840,7 +1840,7 @@ private:
|
|||
AttachedCombo type, oversampling;
|
||||
};
|
||||
|
||||
struct ConvolutionControls : public Component
|
||||
struct ConvolutionControls final : public Component
|
||||
{
|
||||
explicit ConvolutionControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::ConvolutionGroup& state)
|
||||
|
|
@ -1860,7 +1860,7 @@ private:
|
|||
AttachedSlider mix;
|
||||
};
|
||||
|
||||
struct MultiBandControls : public Component
|
||||
struct MultiBandControls final : public Component
|
||||
{
|
||||
explicit MultiBandControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::MultiBandGroup& state)
|
||||
|
|
@ -1881,7 +1881,7 @@ private:
|
|||
AttachedSlider low, high, lRFreq;
|
||||
};
|
||||
|
||||
struct CompressorControls : public Component
|
||||
struct CompressorControls final : public Component
|
||||
{
|
||||
explicit CompressorControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::CompressorGroup& state)
|
||||
|
|
@ -1903,7 +1903,7 @@ private:
|
|||
AttachedSlider threshold, ratio, attack, release;
|
||||
};
|
||||
|
||||
struct NoiseGateControls : public Component
|
||||
struct NoiseGateControls final : public Component
|
||||
{
|
||||
explicit NoiseGateControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::NoiseGateGroup& state)
|
||||
|
|
@ -1925,7 +1925,7 @@ private:
|
|||
AttachedSlider threshold, ratio, attack, release;
|
||||
};
|
||||
|
||||
struct LimiterControls : public Component
|
||||
struct LimiterControls final : public Component
|
||||
{
|
||||
explicit LimiterControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::LimiterGroup& state)
|
||||
|
|
@ -1945,7 +1945,7 @@ private:
|
|||
AttachedSlider threshold, release;
|
||||
};
|
||||
|
||||
struct DirectDelayControls : public Component
|
||||
struct DirectDelayControls final : public Component
|
||||
{
|
||||
explicit DirectDelayControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::DirectDelayGroup& state)
|
||||
|
|
@ -1968,7 +1968,7 @@ private:
|
|||
AttachedSlider delay, smooth, mix;
|
||||
};
|
||||
|
||||
struct DelayEffectControls : public Component
|
||||
struct DelayEffectControls final : public Component
|
||||
{
|
||||
explicit DelayEffectControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::DelayEffectGroup& state)
|
||||
|
|
@ -1993,7 +1993,7 @@ private:
|
|||
AttachedSlider value, smooth, lowpass, feedback, mix;
|
||||
};
|
||||
|
||||
struct PhaserControls : public Component
|
||||
struct PhaserControls final : public Component
|
||||
{
|
||||
explicit PhaserControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::PhaserGroup& state)
|
||||
|
|
@ -2016,7 +2016,7 @@ private:
|
|||
AttachedSlider rate, depth, centre, feedback, mix;
|
||||
};
|
||||
|
||||
struct ChorusControls : public Component
|
||||
struct ChorusControls final : public Component
|
||||
{
|
||||
explicit ChorusControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::ChorusGroup& state)
|
||||
|
|
@ -2039,7 +2039,7 @@ private:
|
|||
AttachedSlider rate, depth, centre, feedback, mix;
|
||||
};
|
||||
|
||||
struct LadderControls : public Component
|
||||
struct LadderControls final : public Component
|
||||
{
|
||||
explicit LadderControls (AudioProcessorEditor& editor,
|
||||
const DspModulePluginDemo::ParameterReferences::LadderGroup& state)
|
||||
|
|
@ -2088,7 +2088,7 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DspModulePluginDemoEditor)
|
||||
};
|
||||
|
||||
struct DspModulePluginDemoAudioProcessor : public DspModulePluginDemo
|
||||
struct DspModulePluginDemoAudioProcessor final : public DspModulePluginDemo
|
||||
{
|
||||
AudioProcessorEditor* createEditor() override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue