Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI/VC++ source to play a .wav file on E-Series AO

I'm looking for source to create an executable to play a wave file though AO on a PCI-6052E. The frequencies I'll be sourcing (in .wav format) are above the response of sound boards, so the standard SDK/Win media solutions are of no help here.
0 Kudos
Message 1 of 2
(2,973 Views)
Hello;

As long as you know the byte structure of the .wav file, you can use the ScanFile function to retrieve the information from the file, pass that information to a floating point array, and use that array as the waveform to be output from the Analog Output channel.
There isn't any toolkint in CVI to treat .wav file.
Hope this helps.
Filipe
0 Kudos
Message 2 of 2
(2,973 Views)