You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem that I was encountered was: Compiling .pio\build\yolo_uno\FrameworkArduino\esp32-hal-adc.c.o In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/celt.cpp:32: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/vorbis_decoder.h:26, from lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/vorbis_decoder.cpp:23: lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/silk.cpp:16: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/flac_decoder/flac_decoder.h:19, from lib/ESP32-audioI2S-3.4.3/src/flac_decoder/flac_decoder.cpp:12: lib/ESP32-audioI2S-3.4.3/src/flac_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/flac_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/mp3_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/mp3_decoder.cpp:8: lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\celt.cpp.o] Error 1 In file included from lib/ESP32-audioI2S-3.4.3/src/wav_decoder/wav_decoder.h:2, from lib/ESP32-audioI2S-3.4.3/src/wav_decoder/wav_decoder.cpp:1: lib/ESP32-audioI2S-3.4.3/src/wav_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/wav_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from src/main.cpp:3: lib/ESP32-audioI2S-3.4.3/src/Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\vorbis_decoder\vorbis_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\silk.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\flac_decoder\flac_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\wav_decoder\wav_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\src\main.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\mp3_decoder\mp3_decoder.cpp.o] Error 1 In file included from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/aac_decoder.h:10, from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/aac_decoder.cpp:8: lib/ESP32-audioI2S-3.4.3/src/aac_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/aac_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/Audio.cpp:18: lib/ESP32-audioI2S-3.4.3/src/Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.cpp:11: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/neaacdec.h:26, from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/neaacdec.cpp:30: lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/../../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/../../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\opus_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\aac_decoder\aac_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\Audio.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\aac_decoder\libfaad\neaacdec.cpp.o] Error 1 =========================================================================== [FAILED] Took 23.69 seconds ===========================================================================
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to run the example code first, check is it can be built yet. The code was:
`#include "Arduino.h"
#include "WiFi.h"
#include "Audio.h"
// Digital I/O used
#define I2S_DOUT 25
#define I2S_BCLK 27
#define I2S_LRC 26
String ssid = "";
String password = "";
Audio audio;
// callbacks
void my_audio_info(Audio::msg_t m) {
Serial.printf("%s: %s\n", m.s, m.msg);
}
void setup() {
Audio::audio_info_callback = my_audio_info; // optional
Serial.begin(115200);
WiFi.begin(ssid.c_str(), password.c_str());
while (WiFi.status() != WL_CONNECTED) delay(1500);
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(21); // default 0...21
audio.connecttohost("http://stream.antennethueringen.de/live/aac-64/stream.antennethueringen.de/");
}
void loop(){
audio.loop();
vTaskDelay(1);
}`
The problem that I was encountered was:
Compiling .pio\build\yolo_uno\FrameworkArduino\esp32-hal-adc.c.o In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/celt.cpp:32: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/vorbis_decoder.h:26, from lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/vorbis_decoder.cpp:23: lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/vorbis_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/silk.cpp:16: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/flac_decoder/flac_decoder.h:19, from lib/ESP32-audioI2S-3.4.3/src/flac_decoder/flac_decoder.cpp:12: lib/ESP32-audioI2S-3.4.3/src/flac_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/flac_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/mp3_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/mp3_decoder.cpp:8: lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/mp3_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\celt.cpp.o] Error 1 In file included from lib/ESP32-audioI2S-3.4.3/src/wav_decoder/wav_decoder.h:2, from lib/ESP32-audioI2S-3.4.3/src/wav_decoder/wav_decoder.cpp:1: lib/ESP32-audioI2S-3.4.3/src/wav_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/wav_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from src/main.cpp:3: lib/ESP32-audioI2S-3.4.3/src/Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\vorbis_decoder\vorbis_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\silk.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\flac_decoder\flac_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\wav_decoder\wav_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\src\main.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\mp3_decoder\mp3_decoder.cpp.o] Error 1 In file included from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/aac_decoder.h:10, from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/aac_decoder.cpp:8: lib/ESP32-audioI2S-3.4.3/src/aac_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/aac_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/Audio.cpp:18: lib/ESP32-audioI2S-3.4.3/src/Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.h:4, from lib/ESP32-audioI2S-3.4.3/src/opus_decoder/opus_decoder.cpp:11: lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/opus_decoder/../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL In file included from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/neaacdec.h:26, from lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/neaacdec.cpp:30: lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/../../Audio.h: In static member function 'static void Audio::AUDIO_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)': lib/ESP32-audioI2S-3.4.3/src/aac_decoder/libfaad/../../Audio.h:608:27: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'? 608 | if (level == 1 && CORE_DEBUG_LEVEL >= 1) { | ^~~~~~~~~~~~~~~~ | XCHAL_DEBUGLEVEL *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\opus_decoder\opus_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\aac_decoder\aac_decoder.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\Audio.cpp.o] Error 1 *** [.pio\build\yolo_uno\lib3ac\ESP32-audioI2S-3.4.3\aac_decoder\libfaad\neaacdec.cpp.o] Error 1 =========================================================================== [FAILED] Took 23.69 seconds ===========================================================================with the platform.ini is:
`[env:yolo_uno]
platform = https://github.com/pioarduino/platform-espressif32.git#develop
board = yolo_uno
framework = arduino
monitor_speed = 115200
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
-DplatBOARD_HAS_PSRAM
-DAUDIO_NO_SD_FS ;
lib_deps =
ArduinoHttpClient
ArduinoJson
DHT20
PubSubClient
ThingsBoard
ESP32-audioI2S-3.4.3`
Beta Was this translation helpful? Give feedback.
All reactions