Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problem with TremoloUnit example and Component Manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with TremoloUnit example and Component Manager



A lucky search of this archive identified the problem (see http:// lists.apple.com/archives/coreaudio-api/2007/Nov//msg00040.html).

In XCode 2.5, there is a bug in AUResources.r.  This code is broken:

// define these based on the kind of build you want to generate.
// BOTH symbols must be defined for rez to work with the defines below.
#if !defined(TARGET_REZ_MAC_PPC)
	#define TARGET_REZ_MAC_PPC 1
#endif

#if !defined(TARGET_REZ_MAC_X86)
	#define TARGET_REZ_MAC_X86 1
#endif


The component is properly recognized after replacing the broken code with this:



// define these based on the kind of build you want to generate. // BOTH symbols must be defined for rez to work with the defines below. #if 0 // remove the following broken bit by conditional compilation #if !defined(TARGET_REZ_MAC_PPC) #define TARGET_REZ_MAC_PPC 1 #endif

#if !defined(TARGET_REZ_MAC_X86)
	#define TARGET_REZ_MAC_X86 1
#endif

#error Should not get here ...

#else

#undef  TARGET_REZ_MAC_PPC
#ifdef ppc_YES
 #define TARGET_REZ_MAC_PPC        1
#else
 #define TARGET_REZ_MAC_PPC        0
#endif


#undef TARGET_REZ_MAC_X86 #ifdef i386_YES #define TARGET_REZ_MAC_X86 1 #else #define TARGET_REZ_MAC_X86 0 #endif

#endif

--
Dave Hein


On Dec 29, 2008, at 1:55 PM, David Gimeno Gost wrote:

On 29 Dec 2008, at 24:42, Dave Hein wrote:

After building, I run "auval -a" and see this error / warning:

NOTE: ignoring this component:
Discovered 0 component = 0xdd147 type = aufx subt = tmlo manu = Aaud flags = 0


Any idea why the Component Manager seems to be rejecting the AU?

I'm using a PPC running OS X 10.4.11 and XCode 2.5.

There is a bug somewhere -- I've already reported it. None of the AU examples work with Xcode 2.5 on a PPC Mac running Mac OS X 10.4. The exact same examples (even if taken from the Xcode 2.5 installation) work fine if you uninstall Xcode 2.5 and install Xcode 2.4.1.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


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
References: 
 >Problem with TremoloUnit example and Component Manager (From: Dave Hein <email@hidden>)
 >Re: Problem with TremoloUnit example and Component Manager (From: David Gimeno Gost <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.