Browse Source

Audio Plugin Host: Double-clicking on Audio/Midi Input/Output Node now opens the audio settings window

tags/2021-05-28
hogliux 8 years ago
parent
commit
a6b8ad0c75
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      examples/audio plugin host/Source/GraphEditorPanel.cpp

+ 12
- 0
examples/audio plugin host/Source/GraphEditorPanel.cpp View File

@@ -162,6 +162,18 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* const node,
auto* processor = node->getProcessor();
AudioProcessorEditor* ui = nullptr;
if (auto* pluginInstance = dynamic_cast<AudioPluginInstance*> (processor))
{
auto description = pluginInstance->getPluginDescription();
if (description.pluginFormatName == "Internal")
{
getCommandManager().invokeDirectly (CommandIDs::showAudioSettings, false);
return nullptr;
}
}
if (type == Normal)
{
ui = processor->createEditorIfNeeded();


Loading…
Cancel
Save