LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Record to WAV file

I need a simple audio recording capability for a CVI program I'm working on.  I'm using ver 8.5.  My UI has a record and stop button.  When the user presses Record, I want to begin recording from the standard microphone input.  When they press Stop, the recording will stop.  Ideally I'd like the audio stream to go directly to a WAV file.  If I need to buffer it internally first and then perform a transform on it, I'll need some details on how to do that.
 
Thanks!
 
Tony
0 Kudos
Message 1 of 4
(3,552 Views)
Hi Tony,

The application that you are developing requires the use of two Windows SDK libraries. The Winmm.dll library contains the functions that you will need in order to perform your audio recording and the Win32.dll contains the File I/O functions. There are a number of resources online to help you navigate through these libraries. I have linked one of these resources below to help you get started.

http://www.ucancode.net/Visual_C_MFC_Example/Record-Play-Save-Wave-file-vc-example.htm

Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,518 Views)

Hey Tony

 

I need to program exactly what you're trying to do. Have you figured it out yet by any chance.

 

Thanks 

 

Moe

0 Kudos
Message 3 of 4
(3,232 Views)

I got pulled off onto another project before I got this working, and I haven't been able to get back to it yet.  Sorry I couldn't help.

 

Tony

0 Kudos
Message 4 of 4
(3,205 Views)