1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

AudioPluginFormatManager: Replace addDefaultFormats function() with non-member

This commit is contained in:
reuk 2025-08-15 18:14:02 +01:00
parent 33b9f1e6ec
commit 426b74fcf7
No known key found for this signature in database
6 changed files with 60 additions and 48 deletions

View file

@ -46,7 +46,7 @@ class PluginScannerSubprocess final : private ChildProcessWorker,
public:
PluginScannerSubprocess()
{
formatManager.addDefaultFormats();
addDefaultFormatsToManager (formatManager);
}
using ChildProcessWorker::initialiseFromCommandLine;

View file

@ -314,8 +314,8 @@ MainHostWindow::MainHostWindow()
LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId),
DocumentWindow::allButtons)
{
formatManager.addDefaultFormats();
formatManager.addFormat (new InternalPluginFormat());
addDefaultFormatsToManager (formatManager);
formatManager.addFormat (std::make_unique<InternalPluginFormat>());
auto safeThis = SafePointer<MainHostWindow> (this);
RuntimePermissions::request (RuntimePermissions::recordAudio,