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

Better AU manufacturer name detection.

This commit is contained in:
jules 2013-05-03 21:20:49 +01:00
parent 177018c7f4
commit cc3efa2c82

View file

@ -217,6 +217,10 @@ namespace AudioUnitFormatHelpers
desc.componentType = types[0];
desc.componentSubType = types[1];
desc.componentManufacturer = types[2];
if (AudioComponent comp = AudioComponentFindNext (0, &desc))
getNameAndManufacturer (comp, name, manufacturer);
break;
}
@ -274,30 +278,23 @@ public:
{
using namespace AudioUnitFormatHelpers;
try
++insideCallback;
JUCE_AU_LOG ("Opening AU: " + fileOrIdentifier);
if (getComponentDescFromIdentifier (fileOrIdentifier, componentDesc, pluginName, version, manufacturer)
|| getComponentDescFromFile (fileOrIdentifier, componentDesc, pluginName, version, manufacturer))
{
++insideCallback;
JUCE_AU_LOG ("Opening AU: " + fileOrIdentifier);
if (getComponentDescFromIdentifier (fileOrIdentifier, componentDesc, pluginName, version, manufacturer)
|| getComponentDescFromFile (fileOrIdentifier, componentDesc, pluginName, version, manufacturer))
if (AudioComponent comp = AudioComponentFindNext (0, &componentDesc))
{
if (AudioComponent comp = AudioComponentFindNext (0, &componentDesc))
{
AudioComponentInstanceNew (comp, &audioUnit);
AudioComponentInstanceNew (comp, &audioUnit);
wantsMidiMessages = componentDesc.componentType == kAudioUnitType_MusicDevice
|| componentDesc.componentType == kAudioUnitType_MusicEffect;
}
wantsMidiMessages = componentDesc.componentType == kAudioUnitType_MusicDevice
|| componentDesc.componentType == kAudioUnitType_MusicEffect;
}
}
--insideCallback;
}
catch (...)
{
--insideCallback;
}
--insideCallback;
}
~AudioUnitPluginInstance()