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:
parent
d3ec87c4a9
commit
32bc00871d
4 changed files with 21 additions and 16 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1150,6 +1150,8 @@ struct GraphDocumentComponent::PluginListBoxModel : public ListBoxModel,
|
|||
#if JUCE_IOS
|
||||
std::unique_ptr<AUScanner> scanner;
|
||||
#endif
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE (PluginListBoxModel)
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue