ESP8266Audio warning I2S deprecated API

Hello everyone, I'm planning to build an MP3 player based on an ESP32 C6 using the ESP8266Audio library. The source is an SD card and the output is via the I2S interface with an external DAC.

I've developed my sketch, and when compiling, I get some warnings reporting that I2S api is deprecated. To clarify my sketch, I compiled the library example: PlayMP3FromSPIFFS as is. And I get the same warnings!

In file included from c:\Users\SERGE\Documents\Arduino\libraries\ESP8266Audio\src\AudioOutputI2S.cpp:23:
C:\Users\SERGE\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32c6/include/driver/deprecated/driver/i2s.h:27:2: warning: #warning "This set of I2S APIs has been deprecated, please include 'driver/i2s_std.h', 'driver/i2s_pdm.h' or 'driver/i2s_tdm.h' instead. if you want to keep using the old APIs and ignore this warning, you can enable 'Suppress legacy driver deprecated warning' option under 'I2S Configuration' menu in Kconfig" [-Wcpp]
27 | #warning "This set of I2S APIs has been deprecated,
| ^~~~~~~
c:\Users\SERGE\Documents\Arduino\libraries\ESP8266Audio\src\AudioOutputI2S.cpp: In member function 'bool AudioOutputI2S::begin(bool)':
c:\Users\SERGE\Documents\Arduino\libraries\ESP8266Audio\src\AudioOutputI2S.cpp:264:23: warning: narrowing conversion of '((AudioOutputI2S*)this)->AudioOutputI2S::use_apll' from 'int' to 'bool' [-Wnarrowing]
264 | .use_apll = use_apll, // Use audio PLL
| ^~~~~~~~
In file included from c:\Users\SERGE\Documents\Arduino\libraries\ESP8266Audio\src\AudioOutputI2SNoDAC.cpp:23:
C:\Users\SERGE\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32c6/include/driver/deprecated/driver/i2s.h:27:2: warning: #warning "This set of I2S APIs has been deprecated, please include 'driver/i2s_std.h', 'driver/i2s_pdm.h' or 'driver/i2s_tdm.h' instead. if you want to keep using the old APIs and ignore this warning, you can enable 'Suppress legacy driver deprecated warning' option under 'I2S Configuration' menu in Kconfig" [-Wcpp]
27 | #warning "This set of I2S APIs has been deprecated,
| ^~~~~~~
In file included from c:\Users\SERGE\Documents\Arduino\libraries\ESP8266Audio\src\AudioOutputSPDIF.cpp:44:
C:\Users\SERGE\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.5-b66b5448-v1\esp32c6/include/driver/deprecated/driver/i2s.h:27:2: warning: #warning "This set of I2S APIs has been deprecated, please include 'driver/i2s_std.h', 'driver/i2s_pdm.h' or 'driver/i2s_tdm.h' instead. if you want to keep using the old APIs and ignore this warning, you can enable 'Suppress legacy driver deprecated warning' option under 'I2S Configuration' menu in Kconfig" [-Wcpp]
27 | #warning "This set of I2S APIs has been deprecated, \

The version of librarie I use is OK: 2.0.0, so after googling as much as possible I did’nt find a solution.

Could someone help me to fix this issue?

Many thanks by advance for help!

I’m not familiar with that library, so cannot help you myself. But you will need to show your sketch and schematic before anyone can offer confident help.

I would personally use the DFR MP3. Player and its library, which is widely used here.

Always wrap source code AND logs in ^^^ code tags.

Nothing to fix, that code is deprecated. Either live with it or use a different library.

If you read the warnings, they tell you what to do to continue to use the deprecated APIs.

Hello and thanks to all of you for your help!

Terrypin, I thought about the player you mentione. I have a few in stock. But it's a minimalist solution, especially with regard to the organization and naming of MP3 files. It doesn't allow me to achieve my goal.

Sonofcy, of course I understand and agree with your comment. I use other developer forums on other platforms. The least I can say is that implementing preformatted text isn't very intuitive on the Arduino forum, I've tryed with no success(!)

Regarding implementing another solution, among the possible choices, I had selected a library using the VS1053 module.
I think I'll fall back on this library.

Vander_der_decken, I'm surprised that a library remains in the repository when it's obsolete; after all, it's a choice...

Thank you again to all of you for your help!

Was last your post composed without word wrapping?