Link to home
Start Free TrialLog in
Avatar of prowebinteractive
prowebinteractive

asked on

playing multiple .wav files at once

I have written some code that uses the following System.Diagnostics.Process.Start(fileName.wav) to play music in a restaurant with Windows Media Player

This works perfectly

The restaurant has now added a bar that he would like to play diiferent music in the bar so I will need to have Windows Media Player playing more than one song at a time

Any ideas?
Avatar of razorback041
razorback041
Flag of United States of America image

playing more than one song at once?  I don't understand how that would work, how are you seperating the speaker outputs?  two soundcards?  what is your setup? as I don't think getting wmp to play two songs at once is your answer, but with a setup that can handle it, you could convince me i guess.
Avatar of prowebinteractive
prowebinteractive

ASKER

yes, two soundcards
DirectSound allows you to play multiple sounds at the same time. Check out the DirectSound sample "DSshow: DirectSound Mixing Test" in the DirectX SDK.

also check out
http://support.microsoft.com/support/kb/articles/Q182/7/99.ASP
try the enumeration to choose your soundcard
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/Enumerate_DirectSound_Devices_Sample.asp
that will allow you to specify which playback device to use

Just have two seperate wmp's going to different playback devices....I believe the media player classic allowed multiple instances of itself to be opened simultaneously.  its free to download.

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial