We have own custom board with VS1000b and SD card as music holding module.
The problem sometimes occures with our layout board - leveling volume from minimum to maximum leads to stopping sound playing sometimes.
We can better figure out what it is the reason of such strange behaviour if you provide us ERROR CODES for the built in rom function PlayCurrentFile()from the context below:
Code: Select all
if (player.currentFile >= 0)
{
//puts("Playing file");
player.pauseOn = 0;
player.ffCount = 0;
cs.cancel = 0;
cs.goTo = startSec; //-1; /* start playing from the start */
cs.fileSize = cs.fileLeft = minifatInfo.fileSize;
cs.fastForward = 1; /* reset play speed to normal */
// start playing
PlayCurrentFile(); //sitting here while SOUND is PLAYED
// end playing, в том числе:
//if (common.cur_excursion)
// timer_autooff = 0; // reset timer autooff
}
Thank you!
Sincerely. Peter