Windows Vista/7:如何对输出音频混合进行采样? [英] Windows Vista/7: How to sample output audio mix?

查看:19
本文介绍了Windows Vista/7:如何对输出音频混合进行采样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何访问当前波形输出样本流?

How can i gain access to the current wave output sample stream?

在 2006 年 12 月关于 social.microsoft.com 的问题中 (如何在 Vista 中从Wave"或Stereo Mix"录制?)yjslash 问:

In a December 2006 question on social.microsoft.com (How to record from 'Wave' or 'Stereo Mix' in Vista?) yjslash asked:

在 Windows XP 或更早版本上,我可以将音频流捕获到扬声器.换句话说,DirectSoundCapture 能够从选定的源行进行捕获.如果选择Wave Out Mix"或Stereo Mix"或类似的东西作为录音源线,DirectSoundCapture 能够将音频流录制到扬声器.

On Windows XP or earlier, I could capture the audio stream to the speaker. In other words, DirectSoundCapture was able to capture from the selected source line. And if "Wave Out Mix" or "Stereo Mix" or something similar was selected as recording source line, DirectSoundCapture was able to record the audio stream to the speaker.

Larry Osterman (MSFT)(音频团队开发人员和 StackOverflow 用户)回应:

To which Larry Osterman (MSFT) (audio team dev and StackOverflow user) responded:

您在 XP 中为此使用了哪些 API?他们应该继续在 Vista 上工作.

What APIs did you use for this in XP? They should continue to work on Vista.

WASAPI 有一个特殊的环回模式,允许客户端捕获后混合音频流,这可能也有帮助

WASAPI has a special Loopback mode that allows a client to capture the post-mix audio stream, that may help as well

一个关于 Stackoverflow 的问题 (如何在 windows xp 和 windows 7 中读取系统音频输出?) 还提到 WASAPI 能够对输出混合进行采样,并且从 Windows Vista 开始可以使用它.

A question on Stackoverflow (How do I read system audio output in windows xp and windows 7?) also mentions that the WASAPI has the ability to sample the output mix, and that it's available starting with Windows Vista.

2007 年 1 月的一篇 Windows 团队博客条目提到了对音频输出进行采样的能力(为了消除回声;以及 HDCP 将对其产生什么影响):

A January of 2007 a Windows Team blog entry mentions the ability to sample the audio output (for the purposes of echo cancellation; and what effect HDCP will have on it):

回声消除对优质内容的效果会不会降低?

我们相信 Windows Vista 为应用程序提供了对足够信息的访问,以成功构建高质量的回声消除功能.

We believe that Windows Vista provides applications with access to sufficient information to successfully build high quality echo cancellation functionality.

使用什么 API 对音频输出进行采样?Vista 为应用程序提供了哪些访问权限来访问当前的音频输出流?WASAPI 的哪些功能以及如何使用它们允许对当前音频输出进行采样/捕获?

What API is used to sample the audio output? What access does Vista provide applications to do access the current audio output stream? What functions, and how to use them, of the WASAPI allows sampling/capture of the current audio output?

推荐答案

我发现了 这个 (Loopback Recording) 在 MSDN 中,还有 这个(捕获一个流).

I found this (Loopback Recording) in MSDN, and also this (Capturing a Stream).

顺便说一句,根据 MSDN,WASAPI 不允许您捕获具有 DRM 保护的流:

By the way, according to MSDN, WASAPI will not allow you to capture streams with DRM protection:

Windows Vista 提供数字权限管理 (DRM).WASAPI 不允许对包含受 DRM 保护内容的数字流进行环回录制.同样,受信任的音频驱动程序不允许环回设备捕获包含受保护内容的数字流.Windows Vista 只允许受信任的驱动程序播放受保护的内容.有关受信任的驱动程序和 DRM 的详细信息,请参阅 Windows DDK 文档.

Windows Vista provides digital rights management (DRM). WASAPI does not permit loopback recording of digital streams that contain DRM-protected content. Similarly, a trusted audio driver does not permit a loopback device to capture digital streams that contain protected content. Windows Vista allows only trusted drivers to play protected content. For more information about trusted drivers and DRM, see the Windows DDK documentation.

这篇关于Windows Vista/7:如何对输出音频混合进行采样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆