• 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: Snow Leopard and AudioUnits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Snow Leopard and AudioUnits?


  • Subject: Re: Snow Leopard and AudioUnits?
  • From: Ian Kemmish <email@hidden>
  • Date: Sat, 29 Aug 2009 20:31:55 +0100


On 29 Aug 2009, at 17:44, tahome izwah <email@hidden> wrote:

Update: I can see in AUResources.r that there are indeed cases for
x86_64_YES and ppc64_YES so I guess that theoretically the below rez
flags should do the trick, but they don't. I checked the view factory
and the AU with lipo and it reports both 32 and 64 bit architectures
are there... so it seems I'm really stuck here.
*******************************************

lipo and arch look at what code segments are in the executable file. Auval looks at what architectures are advertised in the resources.


I had a similar thing when first doing a 64 bit build for 10.5.

This is DEFINITELY NOT RECOMMENDED but if you need to get going in a hurry, I hacked AUResources.r by hand rather than spend time figuring out where all those defines came from:

resource 'thng' (RES_ID, NAME) {
	COMP_TYPE,
	COMP_SUBTYPE,
	COMP_MANUF,
	0, 0, 0, 0,								//	no 68K
	'STR ',	RES_ID,
	'STR ',	RES_ID + 1,
	0,	0,			/* icon */
	VERSION,
	componentHasMultiplePlatforms | componentDoAutoVersion,
	0,
	{
#ifdef __ppc__
	    cmpThreadSafeOnMac,
	    Target_CodeResType, RES_ID,
	    platformPowerPCNativeEntryPoint,
//	    cmpThreadSafeOnMac,
//	    Target_CodeResType, RES_ID,
//	    platformPowerPC64NativeEntryPoint,
#endif
#ifdef __i386__
	    cmpThreadSafeOnMac,
	    Target_CodeResType, RES_ID,
	    platformIA32NativeEntryPoint,
#endif
#ifdef __x86_64__
	    cmpThreadSafeOnMac,
	    Target_CodeResType, RES_ID,
	    platformX86_64NativeEntryPoint,
#endif
	    //#if TARGET_REZ_FAT_COMPONENTS
//	    cmpThreadSafeOnMac,
//		Target_CodeResType, RES_ID,
//		Target_SecondPlatformType,
//#endif
	}
};


I suppose I should have mentioned it at the time, but I assumed that it was just because I had originally started my project from an extremely old version of the AU sample code.


(NOTE: this hack doesn't advertise a 64 bit PPC version. Uncommenting those three lines should do it, though, I think.)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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
  • Follow-Ups:
    • Re: Snow Leopard and AudioUnits?
      • From: tahome izwah <email@hidden>
  • Prev by Date: Re: Snow Leopard and AudioUnits?
  • Next by Date: ExtAudioFileRead Crash
  • Previous by thread: Re: Snow Leopard and AudioUnits?
  • Next by thread: Re: Snow Leopard and AudioUnits?
  • Index(es):
    • Date
    • Thread