how can i read a wave file in Visual Basic 6.0

visualbasic700e
09-30-2000, 06:11 AM
Hi

how can i read a wave file in Visual Basic 6.0
is there a way to view it in voltage, i opened
a wave file in a special editor, but could not figure
it out.
i tryed reading numbers in there to see a pattern
never could see anything each wave file looked
different and started in a different location form
another, i read from byth 200, 277 and 290 in the file
but each time it would be different.
is there a way to convert readable text into
0 and 1's from a wave file or where do i learn more
about it.

Thank You by bye

Matt Nash
10-02-2000, 09:30 AM
I've just discovered something really cool. You can save wave files from windows sound recorder into text files. I tried this last week, then loaded the file into excel and viewed the data as a graph. The graph looked exactly as the waveform should look.

You could use this method to read into VB using the input # function.

Hope this helps,

Matt

punk
12-10-2000, 08:40 PM
huh how can you save a wav in TXT on sound recorder!?!?! I couldn't fund it!

Punkrock on my veins..... ARRGGHHUU !

amram71
12-18-2000, 08:22 PM
The way you could save it as a txt file would be by goin into My Computer or Windows Explorer and renaming the file
sound.wav to soud.txt
It'll warn you that what you are changing the file extensio0n, but don't worry bout it!

punk
01-01-2001, 05:55 PM
Man! I coul'dn't import it to excel... could you explain how you incorporated ( opened )the txt file into excel!? And made a graph from it!?!?!
ThanKx

Punkrock on my veins..... ARRGGHHUU !

amram71
01-02-2001, 11:11 AM
sorry... you''l havr to ask nash bout that

punk
01-05-2001, 09:18 PM
man how can you import this file into excel!? I could't figure this out... thankx

Punkrock on my veins..... ARRGGHHUU !

Matt Nash
01-11-2001, 04:42 AM
I can't remember how to do it. It's really annoying. When I did it, it exported the file in a fixed width format, which was nice and easy to import into excel. As soon as I remember, I'll let you know.

Matt

JAJ
02-11-2001, 08:28 AM
You've probably worked this out by now, but anyway...
If you want to read the data structure, you need to first read the header of the wave file. It's 44 bytes long (normally), and contains information on how the data's formatted, (ie whether it's 16-bit or 8-bit, stereo or mono). Obviously, the file has to be read in different ways depending on the format.
If you want to know more about the header format etc., just email me.

Hope this helps,
JAJ.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum