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.02k stars 432 forks source link

ESP8266Audio compilation error in V3.0.0-Release of Arduino-esp32 #683

Closed Zhentao-Lin closed 4 months ago

Zhentao-Lin commented 4 months ago

This is a very practical and easy to use library, I really enjoy using it to do some audio development. Today, after updating my Arduino-esp32 to version 3.0.0-Release, I found that the compilation failed. As my personal ability level is limited, I ask for your help. Here is my error message.

1

Thank you again.

earlephilhower commented 4 months ago

Espressif seems to have broken existing code with the (IMHO reasonable and a good idea in the long term!) change from WiFiClient to NetworkClient in 3.0.0. Since they have an entire Ethernet MAC onboard in addition to the WiFi radio, it makes sense. On the Pico we ended up keeping WiFiClient and just letting it work on anything, wired or wireless.

All network code for the ESP32 will need to be rewritten to use the new class names. I'm not really an ESP32 user so hopefully someone here will have the time and knowledge to to the transition and throw a PR out...

Lebo77 commented 4 months ago

If I don't use the WiFi functions in this library (all the audio I am playing is local) is there a workaround to comment out all the network stuff?

Edit: OK, the compilation errors go well beyond just the networking stuff. Errors in SPIFFS and I2C output as well.