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

Arduino Support #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Arduino Support #12

wants to merge 3 commits into from

Conversation

pschatzmann
Copy link

Thanks for your quick answer.

I did not want to impact/change any existing functionality, so here is my proposed solution:

  • I added the src directory for Arduino and added the two relevant implementation files which point to your implementation in foxen directory. I would have liked to do this with the help of symlinks, but then we would have most of the Windows users complaining. Initially I used flac.h and flac.c, bat this was giving conflics with the standard FLAC library. So I settled for foxen-flac.h and foxen-flac.c
  • I added libraries.properties that is required by Arduino
  • Finally I needed to add some #ifdef ARDUINO in flac.c to point to the correct header file

Finally, I added the support of this library to my AudioTools library tested with an ESP32 with this Arduino Sketch. Unfortunatly the WIFI seems to be too slow for regular FLAC files, but loading the data from a SD should be just fine.

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

Successfully merging this pull request may close these issues.

1 participant