SD card access recover after AudioSourceSDFAT using. #1979
-
Hello @pschatzmann, I'm using AudioSourceSDFAT to access to the SD card for MP3 player (named source). And all is ok. But I have another access to the SD Card for others file browser actions (named sdf) that I finish (sdf.end()) previous to use "source". Once I have finished to use the mp3 player, I do a "source.end()" and then "sdf.begin()" to recover file browser, but appear as "source" is still connected to the SD CARD because "sdf.begin()" fails. How Can I do to uses both or safety dismount AudioSourceSDFAT without problems later? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hello @pschatzmann . The current problem is due to a update that you done in the library, because on previous version of audiotools (1.0.1) all works fine, but now is imposible to recover the access to the SD wit SDFAT library if you uses AudioSourceSDFAT, appears as AudioSourceSDFAT don't want to release the SD card. Could you review it or help me? |
Beta Was this translation helpful? Give feedback.
-
Here I piece of code. The error occurs in sdf.begin(..) at the end of this code. sdf is a SDFat32 object
|
Beta Was this translation helpful? Give feedback.
-
Is possible to pass SDFat32 to AudioSourceSDFAT? Then the initialization would be out of AudioSourceSDFAT and SdFat32 would be pass to the AudioSourceSDFAT |
Beta Was this translation helpful? Give feedback.
-
Check my answer above! |
Beta Was this translation helpful? Give feedback.
No change from my side (that I am aware of)! Maybe it is an change in the arduino core version or the sdfat version ?
You can try to install the old versions again to double check....
And please provide a small example sketch (and the error messages) to reproduce your issue.
ps. Why don't you just leave it open and use the SdFat32 provided by the getAudioFs() method ?
I also just committed an extension where you can provide an open SdFat32 via the AudioSourceSDFAT constructor.