LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

embed wav file in executable for playing

I would like to embed a wav file in an exectubale (an array of wav files would be best) so that I can play that sound.
I want to distribute one file (the executable) that can play an array of audio tracks from wav files.
0 Kudos
Message 1 of 3
(3,417 Views)
You can either store the wav data in a constant like and array of clusters, each cluster would have the wave data (8 or 16 bit mono or stereo: which are 1-d or 2-d arrays of intergers) plus the config info rate resolution or you can store an array of references to wave file paths.  I would go with the second version since you dont bind the data at compile time, allowing for the application to change "sound tracks" without recompiling.  When you build the application you can specify these wave file as support files and lock their paths (probably ./application/data) you can even store the path in the registry if needed.  Good luck.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 3
(3,410 Views)

In reply # 40 of this thread

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=5&jump=true

I imbeded a VI within a VI.

It is a variation on the same theme.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(3,402 Views)