本文介绍了子类化默认播放设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#.

我想知道如何对默认播放设备进行分类,以便从本质上讲可以停止"播放.它通过在我的子类过程中执行基本返回0来播放.

I'd like to know how to subclass the default playback device so I can in essence "stop" it from playing by doing a basic return 0 in my subclassed proc. 

我编写了自己的程序,以允许多个播放设备及其与默认设备不同步,因此我只需要停止播放默认播放设备或将默认播放数据重新路由到我的程序即可处理输出...有什么想法吗?

I wrote my own program to allow multiple playback devices and its out of sync with the default device, so I need to just stop the default playback device from playing OR re-routing the default playback data to my program to handle the output... any ideas?

推荐答案

谢谢您在这里发布.

我对您的问题中的子类没有很好的了解.您是否要更改默认播放设备?您能给我们更多关于您想做什么的解释吗?还是可以向我们提供一些演示代码进行测试?

I do not have a good understanding of subclass in your question. Do you mean you want to change the default playback device? Could you give us more explanation about what you want to do? Or could you provide us some demo code to test?

根据我的搜索,您可以从 .

Based on my search, you could download the source file from Changing your Windows audio device programmatically.

我希望这会对您有所帮助.

最好的问候,

温迪


这篇关于子类化默认播放设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 18:54