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

Improved enablement of DrawableButton. Made hosted VSTs update their latency.

This commit is contained in:
jules 2012-01-03 15:00:13 +00:00
parent f4cbb721a5
commit 825cd60737
3 changed files with 12 additions and 1 deletions

View file

@ -2311,12 +2311,15 @@ VstIntPtr VSTPluginInstance::handleCallback (VstInt32 opcode, VstInt32 index, Vs
return 1; // (not connected)
case audioMasterIOChanged:
setLatencySamples (effect->initialDelay);
break;
// none of these are handled (yet)..
case audioMasterBeginEdit:
case audioMasterEndEdit:
case audioMasterSetTime:
case audioMasterGetParameterQuantization:
case audioMasterIOChanged:
case audioMasterGetInputLatency:
case audioMasterGetOutputLatency:
case audioMasterGetPreviousPlug:

View file

@ -184,6 +184,12 @@ void DrawableButton::buttonStateChanged()
currentImage->setAlpha (opacity);
}
void DrawableButton::enablementChanged()
{
Button::enablementChanged();
buttonStateChanged();
}
void DrawableButton::paintButton (Graphics& g,
bool isMouseOverButton,
bool isButtonDown)

View file

@ -176,6 +176,8 @@ protected:
void buttonStateChanged();
/** @internal */
void resized();
/** @internal */
void enablementChanged();
private:
//==============================================================================