1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Recall some button states in DSP module plugin demo

This commit is contained in:
ed 2018-01-29 09:50:17 +00:00
parent 771025cccf
commit 16c942fd54

View file

@ -30,15 +30,16 @@
//==============================================================================
DspModulePluginDemoAudioProcessorEditor::DspModulePluginDemoAudioProcessorEditor (DspModulePluginDemoAudioProcessor& p)
: AudioProcessorEditor (&p), processor (p),
inputVolumeLabel ({ }, processor.inputVolumeParam->name),
outputVolumeLabel ({ }, processor.outputVolumeParam->name),
lowPassFilterFreqLabel ({ }, processor.lowPassFilterFreqParam->name),
highPassFilterFreqLabel ({ }, processor.highPassFilterFreqParam->name),
stereoLabel({}, processor.stereoParam->name),
slopeLabel ({ }, processor.slopeParam->name),
waveshaperLabel({ }, processor.waveshaperParam->name),
cabinetTypeLabel({ }, processor.cabinetTypeParam->name)
: AudioProcessorEditor (&p),
processor (p),
inputVolumeLabel ({}, processor.inputVolumeParam->name),
outputVolumeLabel ({}, processor.outputVolumeParam->name),
lowPassFilterFreqLabel ({}, processor.lowPassFilterFreqParam->name),
highPassFilterFreqLabel ({}, processor.highPassFilterFreqParam->name),
stereoLabel ({}, processor.stereoParam->name),
slopeLabel ({}, processor.slopeParam->name),
waveshaperLabel ({}, processor.waveshaperParam->name),
cabinetTypeLabel ({}, processor.cabinetTypeParam->name)
{
//==============================================================================
addAndMakeVisible (inputVolumeSlider = new ParameterSlider (*processor.inputVolumeParam));
@ -122,10 +123,12 @@ DspModulePluginDemoAudioProcessorEditor::DspModulePluginDemoAudioProcessorEditor
addAndMakeVisible (cabinetSimButton);
cabinetSimButton.addListener (this);
cabinetSimButton.setButtonText (processor.cabinetSimParam->name);
cabinetSimButton.setToggleState (processor.cabinetSimParam->get(), NotificationType::dontSendNotification);
addAndMakeVisible (oversamplingButton);
oversamplingButton.addListener (this);
oversamplingButton.setButtonText (processor.oversamplingParam->name);
oversamplingButton.setToggleState (processor.oversamplingParam->get(), NotificationType::dontSendNotification);
//==============================================================================
setSize (600, 400);