Mac OSX 10.7 Lion Audio Unit 效果模板无法编译
我刚刚升级到 Mac OSX 10.7 Lion。首先,我讨厌新空间,我不喜欢无法访问比我的用户目录更深的任何目录,但让我们开始讨论问题。
我开发音频单元插件。我有一些代码可以在 XCode 4.0 中编译并完美运行(它们甚至已发布出售)。
但升级到 Lion 和 XCode 4.1 后,Process 方法所在的主音频单元 .cpp 文件(我的文件名为 TestAU.cpp)中出现了两个主要的编译失败问题。下面是失败的代码。
#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
}
我很难解决这个失败。任何帮助都会很棒。谢谢。
I just upgraded to Mac OSX 10.7 Lion. First of all, I hate the new spaces, I dislike not being able to access any directories deeper than my user directory, but lets get to the question.
I develop Audio Unit Plugins. I have a few whose code is compiling and working perfectly (they're even released for sale) in XCode 4.0.
But after upgrading to Lion and XCode 4.1, there are now two major compiling failures in the main audio unit .cpp file (mine is named TestAU.cpp) where the Process method resides. Below is the code that fails.
#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
}
I'm having trouble solving this failure. Any help would be great. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Xcode 文档中搜索 技术说明 TN2276 有关更新 Lion 现有音频单元的说明。
您必须替换
为
但还有更多内容,因此请阅读文档。
编辑:
顺便说一句,关于您关于无法访问所有目录的评论,您可以在查找器的“转到”菜单中找到许多位置。
Search in the Xcode documentation for Technical Note TN2276 for instructions on updating an existing audio unit for Lion.
You have to replace
with
But there is a little more so read the document.
Edit:
BTW regarding your comment about not being able to access all directories you can find many locations in the Go menu of finder.