LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording with a sound card

Hi,
I'm a LabWindows/CVI (v5.5)user, and I trying to use a sound card (like a sound blaster) in full duplex mode. I've seen Windows SDK samples, but theese only reproduce, not record.
Thanks.
0 Kudos
Message 1 of 4
(3,754 Views)
The simple solution to your problem is to buy or otherwise obtain a sound recording & playback library or component. There are a number on the web at various prices (including free), with different capability. We sell an ActiveX component ourselves.

Otherwise, you will have to use the Windows SDK functions. The standard function sets are waveInXXXX() for playback and waveInXXXX() for recording.

Alternatively, if you really like COM you can use the equivalent interfaces in DirectX (DirectSound section).

All these are documented on MSDN, but unfortunately with precious few examples - as I think you have found. I am sure there used to be more! There is possibly a book somewhere containing more examples.

--

Martin
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 4
(3,753 Views)
Hi,

Martin is right, you can use the Windows SDK function (not very easy) or use another ActiveX control to do it. Here is an example that you may find interesting. It controlls the Windows Media Player through CVI. Just go to http://www.ni.com/examples and serach for media player you should find an example for controlling media player using CVI.

You can also help the development of CVI by filing a sugestion for this; just go to www.ni.com/contact and select product feedback, the more requests the better!

Hope that helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 4
(3,753 Views)
To record sound, check out the example project contained in the zip file,
pcsound.zip, which is available through the following URL:

http://perso.wanadoo.fr/philippe.baucour/download/sdk/pcsound.zip

Before running this example, make sure you've enabled your "Mic Volume"
and "Volume Control" inputs and turned the volume up in the Windows
Volume Control applet in the system tray.

Its a French web site but there's an English page via this link:

http://perso.wanadoo.fr/philippe.baucour/usexplaination.html
0 Kudos
Message 4 of 4
(3,753 Views)