如何在 Windows 上使用 RtAudio 和 Direct Sound

发布于 2024-08-21 23:20:39 字数 509 浏览 2 评论 0原文

RtAudio 文档说。

Windows (DirectSound):

配置脚本提供对 MinGW 编译器的支持。 DirectSound 支持通过“--with-ds”标志指定。

为了在 Windows 下为 DirectSound API 编译 RtAudio,您必须拥有 DirectSound 5.0 或更高版本的头文件和源文件。据我所知,Windows NT 不支持 DirectSoundCapture。 DirectSound 的音频输出延迟相当不错,尤其是自 RtAudio 版本 3.0.2 以来。输入音频延迟仍然很差,但自 3.0.2 版本以来有所改善。 RtAudio 最初是使用 Visual C++ 6.0 版开发的,但已使用 .NET 进行了测试。

RtAudio 的 DirectSound 版本可以使用或不使用 UNICODE 预处理器定义进行编译。

它说我必须有 DirectSound 的头文件和源文件。那么我是否需要用 C++ 编写这些头文件和源文件,或者我可以从某个地方获取它们。

The RtAudio documentation says.

Windows (DirectSound):

The configure script provides support for the MinGW compiler. DirectSound support is specified with the "--with-ds" flag.

In order to compile RtAudio under Windows for the DirectSound API, you must have the header and source files for DirectSound version 5.0 or higher. As far as I know, there is no DirectSoundCapture support for Windows NT. Audio output latency with DirectSound can be reasonably good, especially since RtAudio version 3.0.2. Input audio latency still tends to be bad but better since version 3.0.2. RtAudio was originally developed with Visual C++ version 6.0 but has been tested with .NET.

The DirectSound version of RtAudio can be compiled with or without the UNICODE preprocessor definition.

It says I must have a header and source files for DirectSound. So do I need to write these headers and source files in C++ or I can get hold of them from somewhere.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最近可好 2024-08-28 23:20:39

您可以从 Microsoft 获取作为 DirectX SDK 一部分的 DirectSound 标头和库。我访问了 Microsoft 下载中心,搜索“DirectX SDK”,按发布日期排序,然后下载了最新的一。这是它的直接链接: DirectX SDK -(2010 年 6 月)

You can get the DirectSound headers and libs as part of the DirectX SDK from Microsoft. I went to the Microsoft Download Center, searched for "DirectX SDK", sorted by release date, then downloaded the most recent one. Here's a direct link to it: DirectX SDK - (June 2010).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文