多声卡同时发声的技术方案

13 篇文章 0 订阅
3 篇文章 0 订阅

在Windows操作系统下,一般只能选择一个扬声器发声音。如在Windows10中的扬声器列表如下:
在这里插入图片描述
那么有没有让这些扬声器同时发声呢?如我们可以使用类似e2esoft进供的方案,在电脑是虚拟一个声卡,然后让这个虚拟的声卡做为做为电脑默认的虚拟声卡。然后在应用层可以通过wasapi函数获取默认声卡的数据,再二次分发给我们需要播放声音的声卡,这样就完成了多个声卡同时播放声音。
虚拟声卡的开发Windows提供了参考DEMO驱动,主要使用的是portclass进行虚拟开发。
portclass的开发相关技术资料可参考:http://www.pnpon.com
当然,这个是别人提供的方案,我们通过学习了windows音频的驱动架构,其实完全可以使用一个虚拟的总线开发一个总线驱动,对上层avstream.sys上报一个UAC扬声器设备。这样就绕过了复杂的ks驱动等微软关于流式内核驱动复杂的相关概念,回归到简单的USB-UAC音频驱动开发。这个是我擅长了,本人也总结了UAC规范,想学习的同学可点击这里 http://www.usbzh.com
其实本人在开发过程中更多的涉及到的是麦克风和UVC摄像头驱动开发,当时使用USB虚拟总线驱动对上层分别枚举了一个UVC虚拟摄像头和UAC麦克风,然后通过上层自定义的IOCTL实现了数据的回传。

用于无声卡电脑- Virtual Audio Cable At first, please unpack the distribution package into an empty folder on a local drive, making sure that local folder path does not contain special characters like "#", "&" or similar. Unpacking the package, preserve folder structure (after unpacking, destination folder should contain "x86" and "x64" subfolders). If you are new to Virtual Audio Cable, please read the user manual before installation. The best way to open the manual is to run installer application named Setup and click the "Help" button in the first installation dialog. The user manual file (vac.chm, a file named "vac" with a sheet and question mark icon) is an HTML Help format file. Do not open manual file from a network path or directly from the package otherwise help pages may not be displayed due to security restrictions. Copy the file to a local drive before opening. Please make sure that local file path does not contain special characters. If user manual file is opened from a local drive but pages on the right pane are not displayed properly, please check if vac.chm file has the "Unblock" button in its Properties form (right-click the file to open its properties). If yes, unblock it. See also "How blocking some attachments helps protect your computer" topic in Windows Help (Start - Help and Support) and http://support.microsoft.com/kb/902225. Reading the manual, don't forget that there is the "Search" tab. Having a problem, enter some words related to the problem and appropriate pages will be displayed. Of course, search feature will not help if you enter a question like "how can I use it?". It only finds pages containing given keywords.
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

站长漫谈

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值