OversamplingMenu.h (684B)
1 #pragma once 2 3 #include <JuceHeader.h> 4 5 using OversamplerType = chowdsp::VariableOversampling<double>; 6 using BaseOSMenuType = chowdsp::OversamplingMenu<OversamplerType>; 7 8 class OversamplingMenu : public BaseOSMenuType, 9 private AudioProcessorValueTreeState::Listener 10 { 11 public: 12 OversamplingMenu (OversamplerType& osManager, AudioProcessorValueTreeState& vtState); 13 ~OversamplingMenu() override; 14 15 void parameterChanged (const String&, float) override; 16 void generateComboBoxMenu() override; 17 18 private: 19 AudioProcessorValueTreeState& vts; 20 const AudioProcessor& processor; 21 22 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OversamplingMenu) 23 };