取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
3,476 次查看
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 项奖励
2 条消息(共 3 条)
3,469 次查看

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
3 条消息(共 3 条)
3,461 次查看