Running SD and SdFat in the same project.

rickyelqasem:
Well, I promised I would share my code after posing a problem in a different thread so here goes.

Link.

I needed to run both SD.h and SdFat.h in the same project.

Yeah, no. Sorry to rain on your parade.

Who wants to load 2 copies of the same library?

... and then use the String class

... to hold all the filenames in RAM,

... in a dynamically-allocated array of 250 Strings?

Ick. Don't use String™. PaulS was trying to help you work through the real issue: AudioZero uses the old library, SD.

Your time would have been better spent updating AudioZero to use the new library, SdFat. SdFat has many bug fixes and performance improvements.

There is a problem calling sd.init twice, so I'm surprised that this even works for you.