Simon Williams wrote:
I have 16 samples named "A"..."P", each 3072 bytes copied to /RAM/SAMPLES/ I'm using this code to play them in order: 160 FOR F = 65 TO 80 170 PRINT CHR$(4)"BLOAD /RAM/SAMPLES/" CHR$(F) ",A$2000" 180 CALL 35840 : REM DAC522 190 NEXT F What happens, oddly enough, is that the first 12 samples play back-to-back as one would hope, but then there is a noticeable delay between the last four. I've tried this on a IIe, IIgs and IIc+ with the same result... Any ideas...?
Insert a FRE(0) at line 185... Oh wait, that is a Dos 3.3 only command. I still wonder about variable garbage collection in ProDOS. Nevermind. :)
What if you change the loop to if a if goto instead of for/next?Do you last 4 samples have a silent leader? Try playing the first sound 16 time instead and see if you still get the delay on the last 4 iterations.
Thankx, Ed