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!