ESP8266Audio icon indicating copy to clipboard operation
ESP8266Audio copied to clipboard

Added SD MMC support.

Open Zhentao-Lin opened this issue 7 months ago • 0 comments

1,In AudioFileSourceSD.h, the header file for calling the SD card is #include <SD.h>. However, if I use SD_MMC to call the SD card, I won't be able to use it, I have to change it to #include <SD_MMC.h>.

2,In AudioFileSourceSD.cpp, the open function is as follows: *bool AudioFileSourceSD::open(const char filename) { f = SD.open(filename, FILE_READ); return f; } However, if I use SD_MMC to call the SD card, I will not be able to use it, I have to change to: *bool AudioFileSourceSD::open(const char filename) { f = SD_MMC.open(filename, FILE_READ); return f; } Nothing else in the library needs to change. Will you consider adding the SD_MMC feature to support?

Zhentao-Lin avatar Jun 29 '24 07:06 Zhentao-Lin