I successfully used libfat to read and display images on my DS.
My concern is that when I use ASLib to stream a MP3 at the same time (using AS_MP3StreamPlay() function), it sometimes freezes the DS.
I think it may be caused by a concurrent access going wrong.
I made a "stress test loop" which load 2 jpgs files every second to diagnose. Here is the status:
- Loading + MP3 streaming : Freeze somewhere between a few seconds and 11 minutes (best results)
- Loading only : Didn't freeze after 9 hours
- MP3 only : Didn't freeze after 1 hour
Using extensive highly elaborated trace system (a.k.a. "printf"
) ), freeze always happens during the fopen.
Is it a way to check that the libfat is ready before trying to open a file? (I don't mind waiting a few ms to open the file)
Thanks for reading my question,