How to get errors from FATFS_STREAM element?
Posted: Tue Sep 13, 2022 3:25 am
Hi,
I'm using the fatfs_stream audio element to play music from an SD card. It is working well and has removed a whole lot of code I had to open and read files. However, when something goes wrong (e.g. SD card is removed) I need to know that the file read has failed and try demounting and remounting the SD card. It seems that the element is very quiet about errors. It logs them to the console but does not send an event to the pipeline. What is the correct approach for detecting these i/o errors?
Regards,
Felix
I'm using the fatfs_stream audio element to play music from an SD card. It is working well and has removed a whole lot of code I had to open and read files. However, when something goes wrong (e.g. SD card is removed) I need to know that the file read has failed and try demounting and remounting the SD card. It seems that the element is very quiet about errors. It logs them to the console but does not send an event to the pipeline. What is the correct approach for detecting these i/o errors?
Regards,
Felix