阅读:1305回复:10
如何实现几个Device之间的连接?(难++难++难...)
现在我用c++做了个device,这个device有两个sourcepin
并要与两个声音输出device相连接(自动连接), 并能在两个声音输出设备上同时播放。 要实现上述功能,用c++该如何实现?望各位高手多帮助! <注>OS:winXP Home 这里的连接是在kernel-mode下处理? 还是在user-mode下处理? 如果在kernel-mode处理,调用的函数是什么? 如果在user-mode处理,调用的函数又是什么? 谢谢!!! |
|
沙发#
发布于:2004-08-09 14:15
up
|
|
板凳#
发布于:2004-08-10 17:51
如果认为有用的话,
希望你能顶一下!!! |
|
地板#
发布于:2004-08-10 21:19
你说的是用一个设备打开另个设备吧?
用打开文件就可以 |
|
地下室#
发布于:2004-08-11 11:16
我的感觉是自己的应用程序同时打开多个Driver,只要确定好通信方式并控制好多个Driver的同步控制.
当然如果Driver里实现了Driver之间通信那更好了;关注中. |
|
5楼#
发布于:2004-08-11 13:13
我明确的告诉你肯定可以
|
|
|
6楼#
发布于:2004-08-11 13:15
我明确的告诉你肯定可以 等于没说,既然可以就至少应该说说思路。。。。。。 |
|
|
7楼#
发布于:2004-08-11 14:55
firstly, i have never researched an audio driver, but i did study several video drivers.
i remembered such stream processing is executed at the DISPATCH level. if your audio stream dispatch executes at the same level, it's impossible for your driver to communicate with another driver - several APIs to implement this must be called at PASSIVE level. if yes, a system thread or workitem is needed, but the performance will be poor and may not meet your requirements. |
|
|
8楼#
发布于:2004-08-12 15:50
用DirectX编程可以实现没吗?
其中有一个filter是自己写的,它的功能就是连接两个声音输出设备。在KsStudio中通过手动连接调试通过。 现在要求自动连接来实现! |
|
9楼#
发布于:2004-08-12 15:51
再顶一下!
|
|
10楼#
发布于:2004-08-13 14:51
有办法吗?
|
|