Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello!

I am working on a project in VB.NET which deals with a 16-bit Mono Wav (Sound) files.
My VB.NET form contains two buttons.

Button 1 for Reading Wavfile:

I have read the header of a wavfile 'Sound1.wav' and stored its 16-bit sample values (positive & negative) in a Text File named 'readwav.doc'.

Button 2 for Writing Wavfile:
Now I want to write these sample values into a new wav-file 'Sound2.wav'.
What code should I write to create the copy of original wav file using samples stored in the textfile?
Posted
Updated 19-May-12 20:05pm
v6

If I understand correctly, then you just create a copy of the .wav file right now, as you don't change any data?

If that is the case, then you can find out easily what's wrong by looking at Sound1.wav and Sound2.wav with a text/hex editor.
 
Share this answer
 
v2
I used memorystream instead of textfile and there is no distortion and wave file's copy is created! phew! Thank God :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900