Browse Source

Standalone: Fixed build issue with createPluginFilterOfType

tags/2021-05-28
reuk 5 years ago
parent
commit
1915fc7a37
4 changed files with 22 additions and 18 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp
  2. +19
    -15
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h
  3. +2
    -0
      modules/juce_audio_plugin_client/juce_audio_plugin_client.h
  4. +0
    -2
      modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h

+ 1
- 1
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp View File

@@ -41,7 +41,7 @@
// set it then by default we'll just create a simple one as below.
#if ! JUCE_USE_CUSTOM_PLUGIN_STANDALONE_APP
extern juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter();
juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter();
#include "juce_StandaloneFilterWindow.h"


+ 19
- 15
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h View File

@@ -24,6 +24,10 @@
==============================================================================
*/
#if JUCE_MODULE_AVAILABLE_juce_audio_plugin_client
#include <juce_audio_plugin_client/juce_audio_plugin_client.h>
#endif
namespace juce
{
@@ -555,7 +559,7 @@ private:
@tags{Audio}
*/
class StandaloneFilterWindow : public DocumentWindow,
public Button::Listener
private Button::Listener
{
public:
//==============================================================================
@@ -662,20 +666,6 @@ public:
JUCEApplicationBase::quit();
}
void buttonClicked (Button*) override
{
PopupMenu m;
m.addItem (1, TRANS("Audio/MIDI Settings..."));
m.addSeparator();
m.addItem (2, TRANS("Save current state..."));
m.addItem (3, TRANS("Load a saved state..."));
m.addSeparator();
m.addItem (4, TRANS("Reset to default state"));
m.showMenuAsync (PopupMenu::Options(),
ModalCallbackFunction::forComponent (menuCallback, this));
}
void handleMenuResult (int result)
{
switch (result)
@@ -705,6 +695,20 @@ public:
std::unique_ptr<StandalonePluginHolder> pluginHolder;
private:
void buttonClicked (Button*) override
{
PopupMenu m;
m.addItem (1, TRANS("Audio/MIDI Settings..."));
m.addSeparator();
m.addItem (2, TRANS("Save current state..."));
m.addItem (3, TRANS("Load a saved state..."));
m.addSeparator();
m.addItem (4, TRANS("Reset to default state"));
m.showMenuAsync (PopupMenu::Options(),
ModalCallbackFunction::forComponent (menuCallback, this));
}
//==============================================================================
class MainContentComponent : public Component,
private Value::Listener,


+ 2
- 0
modules/juce_audio_plugin_client/juce_audio_plugin_client.h View File

@@ -129,3 +129,5 @@
#include "utility/juce_PluginHostType.h"
#include "VST/juce_VSTCallbackHandler.h"
juce::AudioProcessor* JUCE_API JUCE_CALLTYPE createPluginFilterOfType (juce::AudioProcessor::WrapperType);

+ 0
- 2
modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h View File

@@ -42,5 +42,3 @@ namespace juce
return hostType;
}
}
extern juce::AudioProcessor* JUCE_API JUCE_CALLTYPE createPluginFilterOfType (juce::AudioProcessor::WrapperType);

Loading…
Cancel
Save