Sorry I was away for a while.

This code produces an empty Wav file:

Code:
Open "c:\sinus.wav" For Output As #1
Print #1, "RIFF";
Print #1, Chr(0); Chr(0); Chr(1); Chr(0);
Print #1, "WAVE";
Print #1, "fmt ";
Print #1, Chr(16); Chr(0); Chr(0); Chr(0);
Print #1, Chr(1); Chr(0); Chr(1); Chr(0);
Print #1, Chr(17); Chr(43); Chr(0); Chr(0);
Print #1, Chr(17); Chr(43); Chr(0); Chr(0);
Print #1, Chr(1); Chr(0); Chr(8); Chr(0);
Print #1, "data";
Print #1, Chr(0); Chr(0); Chr(0); Chr(0);
Close
I was making a little error: in order to change the file size, you must modify two lines of code: a pointer and data size. Now it works for me.

There are other data in the heading, such as stereo/mono, sample rate (frequency of sampling), block data size, etc. etc. But to produce an empty file, I used the most standard format: mono, 8 bits, 16000 samples/second.

Hope it finally works!!!

[Edited by Juan Carlos Rey on 03-19-2000 at 11:11 AM]