Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when using AudioOutputULP.h #649

Open
CobaltEcho opened this issue Sep 8, 2023 · 1 comment
Open

Compile error when using AudioOutputULP.h #649

CobaltEcho opened this issue Sep 8, 2023 · 1 comment

Comments

@CobaltEcho
Copy link

CobaltEcho commented Sep 8, 2023

When I use the AudioOutputULP.h library, I get an error on Build/Compile:

undefined reference to `vtable for AudioOutputULP'

Full message:

c:/users/echo/.platformio/packages/toolchain-xtensa-esp32@8.4.0+2021r2-patch5/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio\build\esp32dev\src\main.cpp.o:(.literal._Z5setupv+0x1c): undefined reference to `vtable for AudioOutputULP'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32dev\firmware.elf] Error 1

It compiles fine using the AudioOutputI2S library (using internal DAC) output = new AudioOutputI2S(0, 1);, but since I'm using the internal DAC, I would like to free up my I2S and also attempt to prevent popping as noted here in issue #406 .

I also tried using this branch without sucess:
https://github.com/FedericoBusero/ESP8266Audio/tree/FedericoBusero-patch-ULP

@ben25belot
Copy link

Hi,

Yes, I'm also trying to eliminate the popping sounds.
I managed to do it with this OutputULP by removing line 21 of the file AudioOutputULP.cpp (we could also modify it for better protection).
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3

Everything works for me, without any popping sounds!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants