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

error when switching from 3.08 to latest version #702

Closed
Arielhh opened this issue Mar 19, 2024 · 5 comments
Closed

error when switching from 3.08 to latest version #702

Arielhh opened this issue Mar 19, 2024 · 5 comments

Comments

@Arielhh
Copy link

Arielhh commented Mar 19, 2024

Arduino\libraries\ESP32-audioI2S-master\src/Audio.h:35:50: error: variable or field 'audio_id3image' declared void
extern attribute((weak)) void audio_id3image(File& file, const size_t pos, const size_t size); //ID3 metadata image
it looks like there is a problem with the declaration of the function audio_id3image in the Audio.h file of the ESP32-audioI2S library. The error specifically states that the variable or field audio_id3image is declared as void, which is likely not what was intended.

@schreibfaul1
Copy link
Owner

Hi Arielhh,
that would mean that in line 35 in Audio.h
external __attribute__((weak)) void audio_id3image(File& file, const size_t pos, const size_t size); //ID3 metadata image
position 50 class fs::File is causing a problem.
Unfortunately I cannot reproduce the error, is this related to Arduino V3.0.0?

@Arielhh
Copy link
Author

Arielhh commented Mar 19, 2024

I am using the latest Arduino release 2.3.2 . My code is long so i cannot post it . it compiles with no problem when using ESP32-audioI2S - V3.08. In my code I am not using images so it should not fail on issues related to ID3 metadata images

@Arielhh
Copy link
Author

Arielhh commented Mar 20, 2024

Hi Wolle, I looked at the two versions of Audio.h files. In the old version there are additional included libraries. When I am adding these libraries to the new version the code is compiling correctly. were this libraries omitted for a reason? In my code i am using SPIFFS and i believe that the missing library from the new version is causing the compilation failure.

missing libraries:
#include <SD.h>
#include <SD_MMC.h>
#include <SPIFFS.h>
#include <FFat.h>

@schreibfaul1
Copy link
Owner

Hi Arielhh, thanks for narrowing down the error. I have added the libraries again.

@Arielhh
Copy link
Author

Arielhh commented Mar 20, 2024

Wolle, thanks for developing this great library :)

@Arielhh Arielhh closed this as completed Mar 20, 2024
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