1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windows: Fixed some compilation errors and warnings when building the AudioPluginHost in VS2013

This commit is contained in:
ed 2019-05-20 10:22:08 +01:00
parent d3ec87c4a9
commit 32bc00871d
4 changed files with 21 additions and 16 deletions

View file

@ -77,20 +77,6 @@ AudioProcessorGraph::Node::Ptr FilterGraph::getNodeForName (const String& name)
void FilterGraph::addPlugin (const PluginDescription& desc, Point<double> p)
{
struct AsyncCallback : public AudioPluginFormat::InstantiationCompletionCallback
{
AsyncCallback (FilterGraph& g, Point<double> pos) : owner (g), position (pos)
{}
void completionCallback (AudioPluginInstance* instance, const String& error) override
{
owner.addFilterCallback (instance, error, position);
}
FilterGraph& owner;
Point<double> position;
};
formatManager.createPluginInstanceAsync (desc,
graph.getSampleRate(),
graph.getBlockSize(),

View file

@ -84,6 +84,23 @@ public:
AudioProcessorGraph graph;
private:
//==============================================================================
struct AsyncCallback : public AudioPluginFormat::InstantiationCompletionCallback
{
AsyncCallback(FilterGraph& g, Point<double> pos) : owner(g), position(pos)
{}
void completionCallback(AudioPluginInstance* instance, const String& error) override
{
owner.addFilterCallback(instance, error, position);
}
FilterGraph& owner;
Point<double> position;
JUCE_DECLARE_NON_COPYABLE (AsyncCallback)
};
//==============================================================================
AudioPluginFormatManager& formatManager;
OwnedArray<PluginWindow> activePluginWindows;

View file

@ -1150,6 +1150,8 @@ struct GraphDocumentComponent::PluginListBoxModel : public ListBoxModel,
#if JUCE_IOS
std::unique_ptr<AUScanner> scanner;
#endif
JUCE_DECLARE_NON_COPYABLE (PluginListBoxModel)
};
//==============================================================================

View file

@ -111,8 +111,8 @@ private:
list.scrollToEnsureRowIsOnscreen (log.size() - 1);
}
constexpr static int maxLogSize = 300;
constexpr static int logSizeTrimThreshold = 400;
JUCE_CONSTEXPR static const int maxLogSize = 300;
JUCE_CONSTEXPR static const int logSizeTrimThreshold = 400;
ListBox list { "Log", this };