earlephilhower / ESP8266Audio

Arduino library to play MOD, WAV, FLAC, MIDI, RTTTL, MP3, and AAC files on I2S DACs or with a software emulated delta-sigma DAC on the ESP8266 and ESP32
GNU General Public License v3.0
2.03k stars 432 forks source link

No sound from SD by SPIDF in Nodemcu v3 #591

Closed captainerd closed 1 year ago

captainerd commented 1 year ago

I tried everything, RX. doesn't give any sound signal out even tho this says "is playing..."

Does anyone have any idea why? i tried with amplifier, without, with resistor, with out, etc.. not even a the slightest silent sound other than static noise...

void play_sound(const char *filename) {

File file = SD.open(filename);

if ((decoder) && (decoder->isRunning())) { if (!decoder->loop()) decoder->stop(); } else { if (file) { source->close(); if (source->open(file.name())) { Serial.printf_P(PSTR("Playing '%s' from SD card...\n"), file.name()); decoder->begin(source, output); } else { Serial.printf_P(PSTR("Error opening 222 '%s'\n"), file.name()); } } else { Serial.printf_P(PSTR("Error opening '%s'\n"), filename); } }
}

captainerd commented 1 year ago

never mind, my mistake.