Hello. I have noticed that when I try and edit sound memblocks, they come out wrong. look at this:
LOAD SOUND fileName$,1
MAKE MEMBLOCK FROM SOUND 1,1
FOR x=12 TO GET MEMBLOCK SIZE(1)-2
word#=MEMBLOCK WORD(1,x)
WRITE MEMBLOCK WORD 1,x,word#
NEXT x
MAKE SOUND FROM MEMBLOCK 2,1
SAVE SOUND "1.wav",2
DELETE SOUND 2
LOAD SOUND "1.wav",3
PLAY SOUND 1
WAIT KEY
PLAY SOUND 3
WAIT KEY
It loads a file, makes a memblock from it, then reads data out of the memblock and writes it back in again in the same place. Why does the sound come out at half the speed and lenght? help me!
xxxpetratxxx
B. R. W