积极答复者
c# 中如何实现多个声卡同时播放不同的音乐(分区广播形式)

问题
答案
-
Hi csharp 怎么实现多个声卡同时播放不同的音乐,
你可以从以下地址下载DirectX SDK, 里面有一些代码实例与你的问题相关,应该可以帮到你。
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812
Bob Shen [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Bob ShenModerator 2012年3月19日 2:59
全部回复
-
Hi csharp 怎么实现多个声卡同时播放不同的音乐,
欢迎来到C#论坛。
在这种情况下,你可能需要用到DirectX中的DirectSound。以下是部分源自DirectX Manged Documentation的代码。
using Microsoft.DirectX.DirectSound; public class wfEnum : System.Windows.Forms.Form private DevicesCollection myDevices = null; private struct myDeviceDescription { public DeviceInformation info; public override string ToString() { return info.Description; } public myDeviceDescription(DeviceInformation di) { info = di; } } public wfEnum() { // Retrieve the available DirectSound devices myDevices = new DevicesCollection(); foreach (DeviceInformation dev in myDevices) { myDeviceDescription dd = new myDeviceDescription(dev); // Use DevicesCollection and DeviceInformation to query for devices. }
此外,下面的例子或许也可以帮到您。
http://www.codeproject.com/Articles/4889/A-full-duplex-audio-player-in-C-using-the-waveIn-w
祝您愉快。
Bob Shen [MSFT]
MSDN Community Support | Feedback to us
-
Hi csharp 怎么实现多个声卡同时播放不同的音乐,
你可以从以下地址下载DirectX SDK, 里面有一些代码实例与你的问题相关,应该可以帮到你。
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812
Bob Shen [MSFT]
MSDN Community Support | Feedback to us
- 已标记为答案 Bob ShenModerator 2012年3月19日 2:59
-
Hi csharp 怎么实现多个声卡同时播放不同的音乐,
我暂时标记了一个回复作为答案,如果觉得它没有帮助你可以取消标记。
Bob Shen [MSFT]
MSDN Community Support | Feedback to us