如何编译 64 位 CoreAudio PlayFile 示例代码?

发布于 2024-12-05 19:37:17 字数 464 浏览 2 评论 0原文

这是一个 CoreAudio 新手问题。我下载了 Apple 的 PlayFile 示例 代码。如果我使用提供的 Xcode 项目,它会将其构建为 32 位,并将 -arch i386 传递给编译器。如果我从命令行构建并传递 -arch i386 它仍然工作正常,但如果我删除该标志或将其更改为 -arch x86_64,程序就会终止在 AUOpenGraph 上,错误代码为 -2005 (badComponentType)。

如何将其编译为 64 位程序?我只想知道传递给 clanggcc 的标志。

This is a newbie CoreAudio question. I downloaded Apple's PlayFile sample code. If I use the provided Xcode project, it builds it as 32 bit, passing -arch i386 to the compiler. If I build from the command line and and pass -arch i386 it still all works fine, but if I remove that flag or change it to -arch x86_64, the program dies on AUOpenGraph with an error code of -2005 (badComponentType).

How do I compile it as a 64 bit program? I'd like to know just the flags to pass to clang or gcc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文