mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Formatting
This commit is contained in:
parent
1f29416fd0
commit
c7a17934e3
2 changed files with 13 additions and 13 deletions
|
|
@ -159,11 +159,11 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
PluginWindow (AudioProcessorGraph::Node* n, Type t, OwnedArray<PluginWindow>& windowList)
|
PluginWindow (AudioProcessorGraph::Node* n, Type t, OwnedArray<PluginWindow>& windowList)
|
||||||
: DocumentWindow (n->getProcessor()->getName() + getFormatSuffix (n->getProcessor()),
|
: DocumentWindow (n->getProcessor()->getName() + getFormatSuffix (n->getProcessor()),
|
||||||
LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId),
|
LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId),
|
||||||
DocumentWindow::minimiseButton | DocumentWindow::closeButton),
|
DocumentWindow::minimiseButton | DocumentWindow::closeButton),
|
||||||
activeWindowList (windowList),
|
activeWindowList (windowList),
|
||||||
node (n), type (t)
|
node (n), type (t)
|
||||||
{
|
{
|
||||||
setSize (400, 300);
|
setSize (400, 300);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1401,7 +1401,7 @@ struct VSTPluginInstance final : public AudioPluginInstance,
|
||||||
if (! isPowerOn)
|
if (! isPowerOn)
|
||||||
setPower (true);
|
setPower (true);
|
||||||
|
|
||||||
// dodgy hack to force some plugins to initialise the sample rate..
|
// dodgy hack to force some plugins to initialise the sample rate.
|
||||||
if (! hasEditor())
|
if (! hasEditor())
|
||||||
{
|
{
|
||||||
if (auto* firstParam = getParameters()[0])
|
if (auto* firstParam = getParameters()[0])
|
||||||
|
|
@ -1701,7 +1701,7 @@ struct VSTPluginInstance final : public AudioPluginInstance,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// handles non plugin-specific callbacks..
|
// handles non plugin-specific callbacks.
|
||||||
static pointer_sized_int handleGeneralCallback (int32 opcode, int32 /*index*/, pointer_sized_int /*value*/, void* ptr, float /*opt*/)
|
static pointer_sized_int handleGeneralCallback (int32 opcode, int32 /*index*/, pointer_sized_int /*value*/, void* ptr, float /*opt*/)
|
||||||
{
|
{
|
||||||
switch (opcode)
|
switch (opcode)
|
||||||
|
|
@ -2472,13 +2472,13 @@ private:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Not initialised, so just bypass..
|
// Not initialised, so just bypass.
|
||||||
for (int i = getTotalNumOutputChannels(); --i >= 0;)
|
for (int i = getTotalNumOutputChannels(); --i >= 0;)
|
||||||
buffer.clear (i, 0, buffer.getNumSamples());
|
buffer.clear (i, 0, buffer.getNumSamples());
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
// copy any incoming midi..
|
// copy any incoming midi.
|
||||||
const ScopedLock sl (midiInLock);
|
const ScopedLock sl (midiInLock);
|
||||||
|
|
||||||
midiMessages.swapWith (incomingMidi);
|
midiMessages.swapWith (incomingMidi);
|
||||||
|
|
@ -2593,7 +2593,7 @@ private:
|
||||||
{
|
{
|
||||||
char nm[256] = { 0 };
|
char nm[256] = { 0 };
|
||||||
|
|
||||||
// only do this if the plugin can't use indexed names..
|
// only do this if the plugin can't use indexed names.
|
||||||
if (dispatch (Vst2::effGetProgramNameIndexed, 0, -1, nm, 0) == 0)
|
if (dispatch (Vst2::effGetProgramNameIndexed, 0, -1, nm, 0) == 0)
|
||||||
{
|
{
|
||||||
auto oldProgram = getCurrentProgram();
|
auto oldProgram = getCurrentProgram();
|
||||||
|
|
@ -3076,7 +3076,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is an old workaround for some plugins that need a repaint when their
|
// This is an old workaround for some plugins that need a repaint when their
|
||||||
// windows are first created, but it breaks some Izotope plugins..
|
// windows are first created, but it breaks some Izotope plugins.
|
||||||
bool shouldRepaintCarbonWindowWhenCreated()
|
bool shouldRepaintCarbonWindowWhenCreated()
|
||||||
{
|
{
|
||||||
return ! plugin.getName().containsIgnoreCase ("izotope");
|
return ! plugin.getName().containsIgnoreCase ("izotope");
|
||||||
|
|
@ -3260,7 +3260,7 @@ private:
|
||||||
if (isOpen)
|
if (isOpen)
|
||||||
{
|
{
|
||||||
// You shouldn't end up hitting this assertion unless the host is trying to do GUI
|
// You shouldn't end up hitting this assertion unless the host is trying to do GUI
|
||||||
// cleanup on a non-GUI thread.. If it does that, bad things could happen in here..
|
// cleanup on a non-GUI thread. If it does that, bad things could happen in here.
|
||||||
JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED
|
JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED
|
||||||
|
|
||||||
JUCE_VST_LOG ("Closing VST UI: " + plugin.getName());
|
JUCE_VST_LOG ("Closing VST UI: " + plugin.getName());
|
||||||
|
|
@ -3319,7 +3319,7 @@ private:
|
||||||
resizeToFit();
|
resizeToFit();
|
||||||
}
|
}
|
||||||
|
|
||||||
// hooks to get keyboard events from VST windows..
|
// hooks to get keyboard events from VST windows.
|
||||||
static LRESULT CALLBACK vstHookWndProc (HWND hW, UINT message, WPARAM wParam, LPARAM lParam)
|
static LRESULT CALLBACK vstHookWndProc (HWND hW, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
for (int i = activeVSTWindows.size(); --i >= 0;)
|
for (int i = activeVSTWindows.size(); --i >= 0;)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue