Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dual Audio Is it Possible?

Status
Not open for further replies.

Sidrp

IS-IT--Management
Jun 4, 2003
44
US
Hi..
This might sound abstract, but its for a new upcoming project, I was hoping I could get some help or guidelines to know if its possible at all.
I am in the process of developing an application that will run 2 windows with different multimedia contents. I want to be able to listen to the two windows sounds on 2 different speakers.
Is it possible? Can i Direct the sound to Left and right channel of the same audio card and have 2 speakers running? can i have 2 audio cards and have the application direct the audio output to one of them?
Is this feasible or heard of?
pl. let me know..
thanks
sid
 
You can definitely use the win32 multimedia interface to play sounds to specific devices... this is a good way to play wave files, or anything you can render to .wav buffers. Check out the documentation on the win32 multimedia api :


...specifically the waveOutGetNumDevs function and the waveOutOpen function.

This works great for anything you can render to wav data, which you can do, for example, from direct show filter graphs. If you need advanced DirectSound playback features, this might not be the solution for you.

-Dan
 
Hi,

You can also look at DirectSound. With this lib you can pan (L/R) sound and select a device(soundcard) to load a sound to.

You can probably achieve the same in DirectMusic.

Pjotr
 
It is possible.Usually it is due to your sound card

Nowadays,all of them can support dual sound output.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top