By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,002 Members | 1,311 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,002 IT Pros & Developers. It's quick & easy.

playing wave files on specific Audio device ?

P: n/a
Hi

I can play a wave file through a p/invoke to winmm , but how can i play a
wave file to a specific audio device if i have more then one audio device in
my pc ?
Johan
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You will have to use the waveOutXXX functions from Win32. Follow this link
for a short tutorial on how to play wave sounds through those functions:

http://www.planet-source-code.com/vb...=4422&lngWId=3

Also if you search MSDN there are waveOutXXX functions that will allow you
to enumerate output devices and select them.

http://msdn.microsoft.com/library/de...aveoutopen.asp

Alex

"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:uD**************@TK2MSFTNGP14.phx.gbl...
Hi

I can play a wave file through a p/invoke to winmm , but how can i play a
wave file to a specific audio device if i have more then one audio device
in
my pc ?
Johan

Nov 17 '05 #2

P: n/a
Thanks , that worked ,
i will put it in a dll for easy reuse.

"Alex Passos" <bz@netmerlin.nospam.com> wrote in message
news:OU**************@tk2msftngp13.phx.gbl...
You will have to use the waveOutXXX functions from Win32. Follow this link for a short tutorial on how to play wave sounds through those functions:

http://www.planet-source-code.com/vb...=4422&lngWId=3
Also if you search MSDN there are waveOutXXX functions that will allow you
to enumerate output devices and select them.

http://msdn.microsoft.com/library/de...aveoutopen.asp
Alex

"Sagaert Johan" <RE*************@hotmail.com> wrote in message
news:uD**************@TK2MSFTNGP14.phx.gbl...
Hi

I can play a wave file through a p/invoke to winmm , but how can i play a wave file to a specific audio device if i have more then one audio device in
my pc ?
Johan


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.