Hey Guys,
First post, hope its in the right place!
I thought this code would result in me filling 'txt1' with a bunch of header details (https://ccrma.stanford.edu/courses/422/projects/WaveFormat/) and then the raw audio as binary.
But what actually happens is I get:
"RIFF$@�WAVEfmt "
Any idea what I'm doing wrong?
First post, hope its in the right place!
VB.NET:
Dim fs As System.IO.FileStream
Dim r As System.IO.BinaryReader
Dim buffer(500) As Char
'Get File
fs = New System.IO.FileStream("H:\Visual Studio 2008\Projects\ImportWav\song.wav", IO.FileMode.Open)
r = New System.IO.BinaryReader(fs)
r.Read(buffer, 0, 500)
txt1.Text = (buffer)
I thought this code would result in me filling 'txt1' with a bunch of header details (https://ccrma.stanford.edu/courses/422/projects/WaveFormat/) and then the raw audio as binary.
But what actually happens is I get:
"RIFF$@�WAVEfmt "
Any idea what I'm doing wrong?
Last edited: