----------------------------------------------------------------------
Message: 1
Date: Fri, 13 Jul 2012 15:14:41 -0400
From: Thomas Hass <
email@hidden>
To: Dan <
email@hidden>
Cc:
email@hiddenSubject: Re: AULab sees my AudioUnit but Logic doesn't
Message-ID:
<
email@hidden">
email@hidden>
Content-Type: text/plain; charset="iso-8859-1"
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