1
我刚升级到Mac OSX 10.7 Lion。首先,我讨厌新的空间,我不喜欢不能访问比我的用户目录更深的任何目录,但让我们来回答这个问题。Mac OSX 10.7 Lion音效单元效果模板未能编译
我开发音频单元插件。我有一些代码在XCode 4.0中编译和工作完美(它们甚至被发布出售)。
但升级到Lion和XCode 4.1后,现在在主要音频单元.cpp文件(我的名称为TestAU.cpp)中存在两种主要的编译失败,其中Process方法驻留在此处。以下是失败的代码。
#include "TestAU.h"
COMPONENT_ENTRY(TestAU) // FAIL c++ requires a type specifier for all declarations.
TestAU::TestAU(AudioUnit component) : AUEffectBase(component) // FAIL Expected ';' after top level declarator.
{
CreateElements();
Globals()->UseIndexedParameters(kNumberOfParameters);
SetParameter(kParam_One, kDefaultValue_ParamOne);
#if AU_DEBUG_DISPATCHER
mDebugDispatcher = new AUDebugDispatcher (this);
#endif
}
我在解决此故障时遇到问题。任何帮助都会很棒。谢谢。
非常感谢您的答复。您可以链接到技术说明TN2276。我无法找到它。我搜索了谷歌和开发者库。 – Mark
没关系发现它。 http://developer.apple.com/library/mac/#technotes/tn2276/_index.html#//apple_ref/doc/uid/DTS40011031 – Mark