Hi there!
-=> Quoting Doug Brendish to Johan Kohler <=-
DB> On Apr 13 17:02 98, Johan Kohler of 5:7103/1 wrote:
JK> Can someone please give me a clue as to why the unit below
JK> (in particular
JK> the Procedure READFORMAT) gives Error #100 when I run it.
JK> It plays
JK> a .Wav file but when it reaches the end the error occurs
....
DB> Blockread str[1] = one byte? You are reading 4 bytes into it? Even if
DB> that was technically legal you are still accessing past the end of the
DB> array.
DB> Maybe something like blockread(f,@str[1],3);?
DB> But whatever... You only need to read 3 bytes to get the string 'fmt'
DB> if you are adding the length byte yourself.
Thanks for your contribution. It seems logical, even though I haven't
a clue about the WAV format. I'll try your suggestions.
Thanks again
Sla'n
Johan
___ Blue Wave/DOS v2.30
--- PCBoard (R) v15.3/M 10
---------------
* Origin: AL's PLACE - Durban, South Africa (5:7103/1)
|