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:
parent
f4cbb721a5
commit
825cd60737
3 changed files with 12 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -176,6 +176,8 @@ protected:
|
|||
void buttonStateChanged();
|
||||
/** @internal */
|
||||
void resized();
|
||||
/** @internal */
|
||||
void enablementChanged();
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue