473,469 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Selecting particular sound card

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
Feb 15 '07 #1
3 4368
JVD wrote:
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.
--
Regards JJ (UWA)

Feb 15 '07 #2
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)

Feb 15 '07 #3
Thanks JJ.

I will try work out on the code you have suggested.

- Regards JVD.
Mar 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Saum | last post by:
I am modifying some VB6 code I found online for computing the spectra of sound card data http://fullspectrum.com/deeth/programming/vb.html#Spect in order to build a receiver to detect Gamma Ray...
0
by: Peter | last post by:
Hi all, I'm using windows media player as an object in visual basic 6. I have two sound cards in the PC. The default sound card is used for explorer "clicks" and statup / shutdown sounds in...
3
by: June Li | last post by:
H I got a problem with detecting sound card with Windows x I use SDK function waveInGetNumDevs() to test if there is a sound card. But even if there is no sound card installed, the function...
0
by: June Li | last post by:
H I got a problem with detecting sound card with Windows xp I am working on an application to test microphone. First I need detect if there is a sound card installed (or integrated audio...
3
by: larry | last post by:
Hi, my friends, My boss asked me to use sound card to do analog to digital conversion for my application. I know when we record sound, sound card changes anolog signal to digital file. I have no...
7
tpgames
by: tpgames | last post by:
I know that an internal sound card has to be one listed as for a specific mother board. However, does this rule apply to external sound cards? I use a satellite A75-s2112 toshiba laptop, intel pent...
2
by: lazzypink | last post by:
hi guys! i having a problem in my project which is create a media player and let the user choose the sound card for audio output. Let say i have 2 sound card in my computer, i want to select the...
0
by: nicolecastel | last post by:
Hello I'm developping an application in Csharp,I want to play 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 audio...
2
by: nicolecastel | last post by:
Hello To be clear 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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.