Home Forums Sparkfun MP3 Shield Library Support Forum getBitRateFromMP3File() always returns as zero Reply To: getBitRateFromMP3File() always returns as zero


Bit Rate has been problematic, where it was working on the last release of my MP3 example files. getBitRateFromMP3File attempts to read the file for the CBR or constant bit rate. Note actual bitrate may get updated later by getAudioInfo(). As the file may be using Variable Bit Rate and not constant.

The skip(milliseconds) function advances the file position by the mulitple of the actual read back byte rate, not the CBR initially read from the file:

if(!track.seekCur((uint32_t(timecode/1000 * Mp3ReadWRAM(para_byteRate))))) // skip next X ms.