No problem for the source code, i can wait :pI'm really sorry Stef, I forgot to copy the updated version of my homepage on my flasher which means no source today...
64KB because 2x 8-bit registers form 1 16-bit reg which can hold numbers from 0...65535. Bank changes are automatic so no 32KB limit. I was wondering yesterday, that what might happen if the WAV header is too close to the end of bank... lots of static ?
When you said "bank change is automatic", you mean your code does it automatically right ?
What about forcing your wav len to be 8 bytes boundary (you can use 4 or 16 also) ?
Fill the last unused bytes with silent then you can use your 16 bits reg to store (lenght / 8 ) instead of lenght. That permit you to play (65536 * 8 ) bytes lenght wav easily and also unroll your play loop to 8 bytes