mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fixed a compile error in the plugin host demo.
This commit is contained in:
parent
32081a387c
commit
b74398dfdf
6 changed files with 36 additions and 36 deletions
|
|
@ -77,7 +77,7 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* node,
|
|||
|
||||
if (! useGenericView)
|
||||
{
|
||||
ui = node->processor->createEditorIfNeeded();
|
||||
ui = node->getProcessor()->createEditorIfNeeded();
|
||||
|
||||
if (ui == 0)
|
||||
useGenericView = true;
|
||||
|
|
@ -85,12 +85,12 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* node,
|
|||
|
||||
if (useGenericView)
|
||||
{
|
||||
ui = new GenericAudioProcessorEditor (node->processor);
|
||||
ui = new GenericAudioProcessorEditor (node->getProcessor());
|
||||
}
|
||||
|
||||
if (ui != 0)
|
||||
{
|
||||
AudioPluginInstance* const plugin = dynamic_cast <AudioPluginInstance*> (node->processor);
|
||||
AudioPluginInstance* const plugin = dynamic_cast <AudioPluginInstance*> (node->getProcessor());
|
||||
|
||||
if (plugin != 0)
|
||||
ui->setName (plugin->getName());
|
||||
|
|
@ -137,9 +137,9 @@ public:
|
|||
String tip;
|
||||
|
||||
if (isInput)
|
||||
tip = node->processor->getInputChannelName (index_);
|
||||
tip = node->getProcessor()->getInputChannelName (index_);
|
||||
else
|
||||
tip = node->processor->getOutputChannelName (index_);
|
||||
tip = node->getProcessor()->getOutputChannelName (index_);
|
||||
|
||||
if (tip.isEmpty())
|
||||
{
|
||||
|
|
@ -387,12 +387,12 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
numIns = f->processor->getNumInputChannels();
|
||||
if (f->processor->acceptsMidi())
|
||||
numIns = f->getProcessor()->getNumInputChannels();
|
||||
if (f->getProcessor()->acceptsMidi())
|
||||
++numIns;
|
||||
|
||||
numOuts = f->processor->getNumOutputChannels();
|
||||
if (f->processor->producesMidi())
|
||||
numOuts = f->getProcessor()->getNumOutputChannels();
|
||||
if (f->getProcessor()->producesMidi())
|
||||
++numOuts;
|
||||
|
||||
int w = 100;
|
||||
|
|
@ -400,14 +400,14 @@ public:
|
|||
|
||||
w = jmax (w, (jmax (numIns, numOuts) + 1) * 20);
|
||||
|
||||
const int textWidth = font.getStringWidth (f->processor->getName());
|
||||
const int textWidth = font.getStringWidth (f->getProcessor()->getName());
|
||||
w = jmax (w, 16 + jmin (textWidth, 300));
|
||||
if (textWidth > 300)
|
||||
h = 100;
|
||||
|
||||
setSize (w, h);
|
||||
|
||||
setName (f->processor->getName());
|
||||
setName (f->getProcessor()->getName());
|
||||
|
||||
{
|
||||
double x, y;
|
||||
|
|
@ -423,16 +423,16 @@ public:
|
|||
deleteAllChildren();
|
||||
|
||||
int i;
|
||||
for (i = 0; i < f->processor->getNumInputChannels(); ++i)
|
||||
for (i = 0; i < f->getProcessor()->getNumInputChannels(); ++i)
|
||||
addAndMakeVisible (new PinComponent (graph, filterID, i, true));
|
||||
|
||||
if (f->processor->acceptsMidi())
|
||||
if (f->getProcessor()->acceptsMidi())
|
||||
addAndMakeVisible (new PinComponent (graph, filterID, FilterGraph::midiChannelNumber, true));
|
||||
|
||||
for (i = 0; i < f->processor->getNumOutputChannels(); ++i)
|
||||
for (i = 0; i < f->getProcessor()->getNumOutputChannels(); ++i)
|
||||
addAndMakeVisible (new PinComponent (graph, filterID, i, false));
|
||||
|
||||
if (f->processor->producesMidi())
|
||||
if (f->getProcessor()->producesMidi())
|
||||
addAndMakeVisible (new PinComponent (graph, filterID, FilterGraph::midiChannelNumber, false));
|
||||
|
||||
resized();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue