Mercurial > hg > audio_effects_textbook_code
comparison effects/compressor/Source/PluginEditor.cpp @ 1:04e171d2a747 tip
JUCE 4 compatible. Standardised paths on Mac: modules '../../juce/modules'; VST folder '~/SDKs/vstsdk2.4' (JUCE default). Replaced deprecated 'getSampleData(channel)'; getToggleState(...); setToggleState(...); setSelectedId(...). Removed unused variables. Ignore JUCE code and build files.
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Sun, 22 Nov 2015 15:23:40 +0000 |
parents | e32fe563e124 |
children |
comparison
equal
deleted
inserted
replaced
0:e32fe563e124 | 1:04e171d2a747 |
---|---|
285 | 285 |
286 void CompressorAudioProcessorEditor::timerCallback() | 286 void CompressorAudioProcessorEditor::timerCallback() |
287 { | 287 { |
288 | 288 |
289 // Display the ON/OFF button in its correct state | 289 // Display the ON/OFF button in its correct state |
290 if (buttonONOFF->getToggleState()) buttonONOFF->setToggleState(true, false); | 290 if (buttonONOFF->getToggleState()) buttonONOFF->setToggleState(true, dontSendNotification); |
291 else buttonONOFF->setToggleState(false, false); | 291 else buttonONOFF->setToggleState(false, dontSendNotification); |
292 } | 292 } |
293 | 293 |
294 | 294 |
295 //[/MiscUserCode] | 295 //[/MiscUserCode] |
296 | 296 |