tags:

views:

232

answers:

1

In the default AudioUnit project shell that XCode creates, there is a line at the very bottom of your AUEffect .r file:

#include "AUResources.r"

When compiling under Mac OS X 10.6 Snow Leopard, this line causes the following error:

SysError 0 during open of "AUResources.r"

Note, this error occurs in a completely empty project shell, ie, it's a bug in the XCode project template.

Why?

A: 

XCode generated your project template targeted at the 10.5 platform, which has a different resource path that 10.6. Unhelpfully, the path names are silly:

  • 10.6: /Developer/Extras/CoreAudio
  • 10.5: /Developer/Examples/CoreAudio

To fix:

  1. Get Info on the AUPublic folder in your project source, and change the Path to the correct CoreAudio/AudioUnit/AUPublic folder for your OS/Build target.
  2. Get Info on every file in the Public Utility project folder and hange the paths to the the correct path for your OS. Yes, all of them.
  3. Add the appropriate CAAutoDisposer.h file to the Public Utility project folder.
  4. Do a Clean on the project to prevent nasty vtable errors

Basic diagnosis from the coreaudio-api listserv

Noel