English 中文(简体)
• 如何在具体声音卡内发挥声音
原标题:How to play sound in a specific sound card

I m developping in an application in Csharp and I want to read a sound file in an external sound card,is there a function which give me the possibility to play sound using the name of the sound card and the name of the audio file . So if I want to create 3 buttons and I have 3 sound cards and each button is related to a sound card (for example button1 is related to sound card1 ...) which code can help me to play an audio file in the specific sound card ??? Please give me a code,because I m preparing a general alarm and such code will help me alot.

事先感谢你

问题回答

I m not aware of a way of doing this within .net framework. But you can use the direct sound api:

http://msdn.microsoft.com/en-us/library/microsoft.directx_sdk.参比.directe amountate%28VS.85%29.aspx” rel=“nofollow”>DirectSoundEnumerate,用于寻找可用的装置,然后在

请不要与登记处(或根本没有)对常设仲裁委员会的缺省装置作改动。 这对你们的使用者来说是一个重大疾病。

Here 载有一些在直接的X本土内进行音响的样本代码。

你可以检查直接X和/或XNA。 可以通过向您提供一名直接获奖者,使你们的生活更加容易。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签