I made some little modifications to the library:
– pauseMusic() was not working when software polling selected
pauseMusic() and pauseDataStream() rely on disableRefill() that don’t do nothing when USE_MP3_REFILL_MEANS is set to USE_MP3_Polled
I modify available(), adding a test to playing_state. I choose this solution, thinking it do not interfere with other case of USE_MP3_REFILL_MEANS
– currentPosition() return the time ellapsed since the beginning of execution of the file. If you skip forward or backward in the file with skip(), information returned by currentPosition() become erroneous.
I add the function getCurrentPosition() based on current position in the file track track.curPosition() divided by bit rate
– I add too a function to get the duration of the file getTrackDuration() based on file size track.fileSize() divided by bit rate
– finally added a function to get the bit rate getBitRate()
Those changes are on Github at https://github.com/gallegojm/Sparkfun-MP3-Player-Shield-Arduino-Library/tree/Due