Leopard xcode 3, and audio-unit compile error.
Leopard xcode 3, and audio-unit compile error.
- Subject: Leopard xcode 3, and audio-unit compile error.
- From: "Dave Hoskins" <email@hidden>
- Date: Mon, 12 Nov 2007 22:28:49 -0000
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
Everything seems to compile fine in 10.5, but I need backward compatibility.
It's in AUBase.cpp, with the my ###### comments below.
flags = ioActionFlags | kAudioUnitRenderAction_PostRender; //####### NO
error here
if (SetRenderError (theError))
{
flags |= kAudioUnitRenderAction_PostRenderError; //###### doesn't
know this define.
}
In AUComponent.h they are both 'kAudioUnitRenderAction_PostRender' and
'kAudioUnitRenderAction_PostRenderError' are defined in the same enum!...
enum
{
kAudioUnitRenderAction_PreRender = (1 << 2),
kAudioUnitRenderAction_PostRender = (1 << 3),
kAudioUnitRenderAction_OutputIsSilence = (1 << 4),
kAudioOfflineUnitRenderAction_Preflight = (1 << 5),
kAudioOfflineUnitRenderAction_Render = (1 << 6),
kAudioOfflineUnitRenderAction_Complete = (1 << 7),
kAudioUnitRenderAction_PostRenderError = (1 << 8) //#####
Strangely this define is in black where the others are blue, the same can be
said for some other enums in the file.
};
I have installed all the optionals from the Leopard disc, can someone tell
me what's happening here? I'm guessing it's part of the 'scope' but I don't
know what this means in the project context.
Thanks
Dave Hoskins
_______________________________________________
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