- Fri Aug 18, 2017 10:32 am
#69241
reaper7 wrote:earlephilhower wrote:Are you getting any "lost sync at byte XX" warnings?
No, only "MP3 done" at start
earlephilhower wrote:Do you need a leading "/" in the SD libs? You need it for SPIFFS...
Of course I checked this SD lib allows to use two forms for root dir, with or without leading "/"
I just added a SD card class from the documentation. Haven't tried it since don't have one hooked up now, but I think you just need the sD.begin() in setup() before calling it and all should be well. Other than having to manually do the seek_* handling it's almost the same as SPIFFS.
Anyway, it looks like I remembered wrong. There is no output but "MP3 done" about 5 seconds after it starts. So it could very well be playing for 5 seconds. I just uploaded the example and ran and got no output until MP3 done, but when the speaker was connected I did hear the piano playing. It's quite short, only a few seconds.
As a sanity check, have you heard sound from any of the examples (using the ? Anything from PROGMEM just needs a compile/upload, assuming it's using the AudioOutputI2SNoDAC() class (or just change the output class to that from I2SDAC(). That way we can pinpoint if it's the speaker amp or the SD IO code or if I have some other changes in the IDE (I'm running ~GIT head, not 2.3.0, since I'm doing work on HTTPS SSL servers.
One thing I vaguely remember, is that some models (Adafruit comes to mind, but I could be wrong) have a diode on the RX pin such that it can't actually be used as an output...and that's the only I2S output pin available, no changing it. I've got a WeMo D1 (clone?) where the pinout is fine and there is no diode blocking the signal. A peek at the schematics, if available, would confirm or deny this.