Hello, i've designed a "music" player based on Arduino Mega and VS1053.
It works very well with MP3 files but with Ogg Vorbis depending of file "quality" the file stop playing after 1 to 3 minutes.
I don't think it come from Arduino (that works well with MP3s) and continue to react to other signals (switch).
Is there anybody who has already encountered this problem?
I use Adafruit_VS1053 library.
Thanks for your feedback.
Ogg Vorbis stop playing
Re: Ogg Vorbis stop playing
i've made some measurement with scope. VS1053 stop toggle "DREQ" after few seconds depending of Ogg file "quality". Is there a patch to solve that problem ?
Re: Ogg Vorbis stop playing
Check out the vs1053b patches package from http://www.vlsi.fi/en/support/software/ ... tches.html
It could be that you're encountering the first situation. Edit: hmm, maybe not. Could you send us an example file which gets stuck? Also, performing a SCI register dump at this point could give more information.vs1053b Patches wrote:Vorbis: If the first four bytes of Ogg Vorbis file wrap from the end of the stream buffer to the beginning, the decoding will get stuck.
Vorbis: If left channel is empty (digital 0), right channel may be ignored.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
Re: Ogg Vorbis stop playing
Thanks.
I've tried with the patch and it doesn't change anything.
This is a link to the file i used:
https://1drv.ms/u/s!Ag-_HX8J6xwBgYQWzMD ... w?e=2Of3Q6
Do you know a tool to "analyse" ogg file?
I never try to make a dump of SCI Register. I'll try to do it.
I've tried with the patch and it doesn't change anything.
This is a link to the file i used:
https://1drv.ms/u/s!Ag-_HX8J6xwBgYQWzMD ... w?e=2Of3Q6
Do you know a tool to "analyse" ogg file?
I never try to make a dump of SCI Register. I'll try to do it.
Re: Ogg Vorbis stop playing
Ogginfo doesn't find any issues with the file, and neither does oggcrc.
Ogginfo is available on linux. You can find oggcrc source code from: viewtopic.php?t=2376
Edit: Seems to play fine with vs1063a and vs1053b (with or without the patches package). So, I suggest checking your SPI speed, clock polarity, and chip select handling.
Ogginfo is available on linux. You can find oggcrc source code from: viewtopic.php?t=2376
Edit: Seems to play fine with vs1063a and vs1053b (with or without the patches package). So, I suggest checking your SPI speed, clock polarity, and chip select handling.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook