Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wave Data

Status
Not open for further replies.

clarkm2

Programmer
Jun 12, 2003
11
0
0
US
How can I open a wave file and transfer the data into an array? Also I need to convert the format to binary, can anyone help?
 
Here is some code from one of my Apps.

iFile = FreeFile
Open sFile For Binary As iFile

sGet = String(128, " ")
Do Until EOF(iFile)
Get #iFile, , sGet
sBuild = sBuild & sGet
DoEvents
Loop

Close iFile

At the end of this sBuild is the entire file as a big string. Do what you want with the string.

Editor and Publisher of Crystal Clear
 
Cool, Where to I put the code to load a file or is it already there, if so where? Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top