Just had a few more goes at loading WAV - it works fine but outputting the same variable Type creates problems. I modified the type style to be
array as byte*4
instead of a string variables. That weay you can write out to the file and not cause problems with the string stop code.
what you have to do is
Dim array(0 to 255) as byte,outarr(0 to 255) as integer, _
heada as PARA, n as long, m as integer
' see type def with last corretion
Open "Wave.WAV" for binary access read as #1 len=1
get #1,heada
for n= &H2C to waveend1 step 256
get,n,array
for m=0 to 255
outarr(m)=Cint(array(m))-128
next ' m
' your wotsit here for 256 bytes per loop
if EOF(1) then n = 257
next ' n
I am not at my machine but I reckon that is close, provided you declare the PARA type with Byte*4 correction (again check the help/example files) - you have a max for arrays of 65K (I think) so you have to handle it in chunks - which could be as small as 1 byte if you don't want arrays.
Best of luck