Re: Leopard xcode 3, and audio-unit compile error.
Re: Leopard xcode 3, and audio-unit compile error.
- Subject: Re: Leopard xcode 3, and audio-unit compile error.
- From: Howard Moon <email@hidden>
- Date: Mon, 12 Nov 2007 15:30:27 -0800
On Nov 12, 2007, at 2:28 PM, Dave Hoskins wrote:
Hi guys, I've just installed the Leopard OS, and updated to xcode 3.0.
Bringing up my audio unit xcode 2.4 project, and compiling for
'10.4' it
gives the following weird error:-
*ERROR
/Developer/Examples/CoreAudio/AudioUnits/AUPublic/AUBase/AUBase.cpp:
1307:
error: 'kAudioUnitRenderAction_PostRenderError' was not declared in
this
scope
Are you compiling the correct files? My 10.4 version of that header
has this:
enum
{
/* these are obsolete, were never implemented: */
/* kAudioUnitRenderAction_Accumulate = (1 << 0) */
/* kAudioUnitRenderAction_UseProvidedBuffer = (1 << 1) */
kAudioUnitRenderAction_PreRender = (1 << 2),
kAudioUnitRenderAction_PostRender = (1 << 3),
kAudioUnitRenderAction_OutputIsSilence = (1 << 4),
/* provides hint on return from Render(): if set the buffer contains
all zeroes */
kAudioOfflineUnitRenderAction_Preflight = (1 << 5),
kAudioOfflineUnitRenderAction_Render = (1 << 6),
kAudioOfflineUnitRenderAction_Complete = (1 << 7)
};
Notice that there is no kAudioUnitRenderAction_PostRenderError value.
Check the path to the AUComponent.h file you're actually using in the
10.4 compile. (I think you can Control-click on a symbol that IS
defined, such as kAudioUnitRenderAction_PostRender, and select Jump To
Definition.) You're probably using the 10.4 header files, where that
symbol is not defined. But the AUBase.cpp file expects it to be
there, which it IS, in the 10.5 header.
I'm not sure what the *correct* method of targeting 10.4 from Xcode
3.0 in 10.5 is, but I suspect that either you need to use the header
path for the 10.5 headers, or else use the AUBase files from the 10.4
Developer tree.
Someone else can probably help you set up the compile environment
correctly, but probably in a different mailing list. (I assume
there's an Xcode mailing list? I'd ask something more generic, such
as "How do I target a 10.4 AudioUnit from Xcode 3.0 in 10.5?")
-Howard
_______________________________________________
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