LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to work with 2 soundcards with the sndplaysound function = how can i choose to play a sound on the first or the second card ?

Normally National Instruments technical support does not answer questions about 3rd party libraries and I understand you were probably just throwing this question out to see if anybody knew, but the question did pique my curiosity and here is some information I found about the wave file playback functions of the Windows SDK.

Go to this link to see a complete list of wave file functions on the Microsoft Developer Network:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/hh/multimed/mmfunc_27ar.asp

The function I think you want to look at is WaveOutOpen, this should let you pick a certain playback device (use WaveOutGetNumDevs and WaveOutGetID to see how many devices are available and to get a handle to one of the boards). Note though that
there are different families of functions intended to work together and it is noted on this website that sndplaysound is obsolete.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(2,993 Views)