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
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);
}
}
}
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); } }
}