Are you playing from the NAND in both cases? Or is the difference between a version with file storage in NAND FLASH and SPI FLASH?
The gapless code has been tested with a SD card, so I would not expect to see such a big gap when data is loaded from SPI FLASH. (Maybe you miss some inits when you boot from SPI FLASH.)
Code: Select all
clockX = 2;
InitAudio(); /* goto 1.0x */
PERIP(INT_ENABLEL) = INTF_RX | INTF_TIM0;
PERIP(INT_ENABLEH) = INTF_DAC;
clockX = 7;
SetRate(48000);/*set 3.5x*/