C#如何编程更改播放器 [英] C# How to programatically change the playback device
本文介绍了C#如何编程更改播放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何编程更改默认的音频设备上的VISTA / 7胜制?使用C#或一个双赢的API调用?
How can I programatically change the default audio device on a vista / win 7 system? Using C# or a Win API call?
推荐答案
该WINMM API应该提供您所请求的功能。
The WinMM API should provide the functionality that you request.
您将使用DRVM_MAPPER_ preFERRED_SET消息,这是与waveOutMessage()函数。
You would use the DRVM_MAPPER_PREFERRED_SET message, which is sent with waveOutMessage() function.
文档: http://msdn.microsoft.com/en-us/库/ aa909789.aspx
不过,如果你要发送的波形试探自己,你应该看看WinMM.Net库。
However, if you are trying to send the waveform sound out yourself, you should look at the WinMM.Net library.
这篇关于C#如何编程更改播放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文