How to use in-repo audio library fork

ironsider

Member
I'm needing to fork the audio library to make some changes to how it buffers WAV playback. All pretty simple, however, I can't seem to get Arduino IDE to compile my project with the audio library at ./libraries/Audio

My understanding is the IDE usually prefers libraries in the ./libraries folder, but does Teensyduino override this eminently sensible behaviour?

I'm assuming this is a fairly common thing, so I'm probably being a bit stupid here and there's an obvious workaround!
Thanks!
 
It should work to check out your repo to libraries/Audio - I do it all the time. Switch on verbose compilation and check the build messages to ensure the IDE is picking up the correct path. If you adopt good version control practice and make a branch for your changes it’s then easy to switch back to the stock library if you need to.

This thread discusses my efforts on making WAV playback (and recording) work properly; there’s a Pull Request in place for what I believe is a usable solution.
 
does Teensyduino override this eminently sensible behaviour?

First the easy answer...

On Arduino 2.0.4 and later, Teensyduino makes no changes to how Arduino IDE finds libraries.

On Arduino 1.8.19 and earlier, Teensyduino makes only very minor changes. Those minor things should not impact overriding libraries.


Now the less easy answer. You're saying "./libraries", but what specifically does "./" mean? And how does it compare with Sketchbook Location in Arduino's File > Preferences?
 
Back
Top