• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AULab sees my AudioUnit but Logic doesn't
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AULab sees my AudioUnit but Logic doesn't


  • Subject: Re: AULab sees my AudioUnit but Logic doesn't
  • From: Abel Domingues <email@hidden>
  • Date: Sat, 14 Jul 2012 03:36:10 -0400

the issue is GetProperty  and GetPropertyInfo, which have been significantly altered in both Lion and Snow Leopard versions of the sample code...

open your .cpp file and replace those two methods with these versions (adapted from the Xcode 3.x templates), replacing the macros as necessary for your project:

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ___PROJECTNAMEASIDENTIFIER___::GetPropertyInfo
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OSStatus ___PACKAGENAMEASIDENTIFIER___::GetPropertyInfo (AudioUnitPropertyID inID,
                                                                AudioUnitScope inScope,
                                                                AudioUnitElement inElement,
                                                                UInt32 & outDataSize,
                                                                Boolean & outWritable)
{
return AUEffectBase::GetPropertyInfo (inID, inScope, inElement, outDataSize, outWritable);
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ___PROJECTNAMEASIDENTIFIER___::GetProperty
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OSStatus ___PACKAGENAMEASIDENTIFIER___::GetProperty( AudioUnitPropertyID inID,
                                                           AudioUnitScope  inScope,
                                                           AudioUnitElement  inElement,
                                                           void * outData )
{
return AUEffectBase::GetProperty (inID, inScope, inElement, outData);
}

...and I betcha that fixes it... 

Abel


On Jul 13, 2012, at 5:35 PM, email@hidden wrote:

----------------------------------------------------------------------

Message: 1
Date: Fri, 13 Jul 2012 15:14:41 -0400
From: Thomas Hass <email@hidden>
To: Dan <email@hidden>
Cc: email@hidden
Subject: 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

 _______________________________________________
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

  • Prev by Date: Re: AULab sees my AudioUnit but Logic doesn't
  • Next by Date: Re: AULab sees my AudioUnit but Logic doesn't
  • Previous by thread: Re: AULab sees my AudioUnit but Logic doesn't
  • Next by thread: Re: AULab sees my AudioUnit but Logic doesn't
  • Index(es):
    • Date
    • Thread