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

i2s_write_bytes deprecated #401

Open pablofr918 opened 3 years ago

pablofr918 commented 3 years ago

Hello, I am trying to use the ESP8266Audio library in PlatformIO since I have already used it in Arduino IDE, but an error appears saying _error: 'i2s_writebytes' was not declared in this scope so I have investigated and this page: https://docs.espressif.com/projects/esp-idf/en/v4.1/api-reference/peripherals/i2s.html says there is a new version, in which that function does not exist anymore, so it has to be replaced for another. Will this be updated soon?

Thank you very much!

Jason2866 commented 3 years ago

A fix is done from @arendst for Tasmota by doing this https://github.com/arendst/Tasmota/commit/1c5b1c0ee0ac260cab3c90d5c5e1ad77730e1498