Selecting particular sound card

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In my system, i have two sound card installed. I am developing one multimedia
application in c# using DirectShow.

I want to select particular sound card and play one audio file and, play
another audio file in other sound card. i tried adding some audio filter (as
suggested in web) but since i am novice, i could not solve it.

Could anybody provide me source code in c# to resolve this issue.

Hope someone is there.

Thanks in advance.
Regards
 
JVD said:
In my system, i have two sound card installed. I am developing one
multimedia application in c# using DirectShow.

I want to select particular sound card and play one audio file and,
play another audio file in other sound card. i tried adding some
audio filter (as suggested in web) but since i am novice, i could not
solve it.

Could anybody provide me source code in c# to resolve this issue.

Hope someone is there.

Thanks in advance.
Regards

The DirectX SDK has a shead load of C# source code for playing sounds. There
is deffinity a simple properits stated in the SDK that will solve your
issue.
 
This Code is stright from the "DirectX Manged Documentation"

[C#]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.
}

Regards JJ (UWA)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top