Re: AULab sees my AudioUnit but Logic doesn't
Re: AULab sees my AudioUnit but Logic doesn't
- Subject: Re: AULab sees my AudioUnit but Logic doesn't
- From: Thomas Hass <email@hidden>
- Date: Fri, 13 Jul 2012 15:14:41 -0400
Ok I understand. However, I am still unable to load the AU in Logic. This time I started with the Snow Leopard project and made the changes as described by the technical note. The project was unable to build until I removed AUResources.r from the "Build Carbon Resources" build phase (I copied the error I was getting below). Once again, the AU passed auval with no issues, I was able to load and use the AU in AULab but not in Logic.
Besides the changes that the technical note described, were there any other changes you had to make to the Snow Leopard project?
Sample code would be much appreciated.
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:68: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Undefined variable (RES_ID) not allowed in _expression_.
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:68: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Expected number, but got ','
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:72: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Undefined variable (RES_ID) not allowed in _expression_.
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:72: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Expected number, but got ','
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:76: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Undefined variable (RES_ID) not allowed in _expression_.
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:76: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Expected number, but got ')'
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:82: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Undefined variable (RES_ID) not allowed in _expression_.
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r:82: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Expected number, but got ','
/Library/Developer/CoreAudio/AudioUnits/AUPublic/AUBase/AUResources.r: ### /Applications/Xcode.app/Contents/Developer/usr/bin/Rez - Since errors occurred, /Users/thass116/Library/Developer/Xcode/DerivedData/MyGreatAUEffectWithCocoaUI-hfkceotjeuwrhrcbqarwruxjtnnd/Build/Intermediates/MyGreatAUEffectWithCocoaUI.build/Debug/MyGreatAUEffectWithCocoaUI.build/ResourceManagerResources/Objects/AUResources.rsrc's resource fork was not written.
Command /Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 2
On Fri, Jul 13, 2012 at 9:26 AM, Dan
<email@hidden> wrote:
I suspect you're using the Lion version of the sample code. I had the same problem. Logic isn't yet using the new AudioCompnents dictionary in in the Info.plist file, but AU Lab is (see Technical Note TN2276). The Leopard version of the sample code uses this entry:
#define NAME "SAMPLE: MyGreatAUEffectWithCocoaUI"
in the MyGreatAUEffectWithCocoaUI.r resource file. Logic splits this string SAMPLE: MyGreatAUEffectWithCocoaUI in half as [Manufacturer] : [AudioUnitName]. In other words, anything before the colon is the manufacturer and after the colon is the audio unit name.
In the end, I copied the Leopard version (which uses the MyGreatAUEffectWithCocoaUI.r file), and made the changes in Technical Note TN2276, including the new AudioComponents entry in the Info.plist file (which Logic SHOULD be using).
If you're still stuck I can probably upload a working version for you somewhere. I have to say I wasn't very impressed that the sample code is in such a mess; it makes it very hard for new audio unit/core audio developers to get started.
Dan
On Jul 13, 2012, at 1:41 PM, Thomas Hass wrote:
The plugin does not show up in the AU Manager. It did pass auval, and the format is 2 channel floating LPCM according to auval. FYI, I made the plugin by customizing the MyGreatAUEffectWithCocoaUI project that Apple provides. The weird thing is that I have the same problem when building that project unmodified. Is anyone able to see the MyGreatAUEffectWithCocoaUI audio unit in Logic without modifying Apple's Xcode project?
On Jul 13, 2012, at 6:00 AM, tahome izwah <
email@hidden> wrote:
...or maybe you're using a channel configuration or plug-in type that the channel you're trying to insert it on in Logic doesn't support?
HTH
--th
2012/7/13 Stefan Gretscher
<email@hidden>
Am 12.07.2012 um 20:26 schrieb Thomas Hass:
> I'm just getting my feet wet with AudioUnit development and everything seems to work fine. The AU validates with auval no problem and I am able to open and use the AU inside AULab. However Logic doesn't see it. I'm compiling the AU as 64 bit and opening Logic in 64 bit mode as well. I dragged the component file into Library/Audio/Plug-Ins/Components. Is there a reason that AULab can see the AU but not Logic?
Check Logic's AU manager (found in the preferences menu) - does your plug-in show up there? Is it enabled? Did it pass the auval?
-Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________Do not post admin requests to the list. They will be ignored.Coreaudio-api mailing list (email@hidden)
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden