Skip to content

Commit dc9e598

Browse files
committed
Support JUCE 8.0.11 (addDefaultFormats is removed)
1 parent 6385bcf commit dc9e598

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Source/CommandLine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ namespace
239239
bool isPluginArgument (juce::String arg)
240240
{
241241
juce::AudioPluginFormatManager formatManager;
242+
#if JUCE_VERSION >= 0x08000B
243+
addDefaultFormatsToManager (formatManager);
244+
#else
242245
formatManager.addDefaultFormats();
246+
#endif
243247

244248
for (auto format : formatManager.getFormats())
245249
if (format->fileMightContainThisPluginType (arg))

Source/MainComponent.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ namespace
246246
MainComponent::MainComponent (Validator& v)
247247
: validator (v)
248248
{
249+
#if JUCE_VERSION >= 0x08000B
250+
addDefaultFormatsToManager (formatManager);
251+
#else
249252
formatManager.addDefaultFormats();
253+
#endif
250254

251255
const auto tabCol = getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId);
252256
addAndMakeVisible (tabbedComponent);

Source/PluginTests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ PluginTests::PluginTests (const juce::String& fileOrIdentifier, Options opts)
5252
{
5353
jassert (fileOrIdentifier.isNotEmpty());
5454
jassert (juce::isPositiveAndNotGreaterThan (options.strictnessLevel, 10));
55+
#if JUCE_VERSION >= 0x08000B
56+
addDefaultFormatsToManager (formatManager);
57+
#else
5558
formatManager.addDefaultFormats();
59+
#endif
5660
}
5761

5862
PluginTests::PluginTests (const juce::PluginDescription& desc, Options opts)

0 commit comments

Comments
 (0)