Coder Social home page Coder Social logo

Comments (5)

FrankBoesing avatar FrankBoesing commented on July 25, 2024

Yes that's a known issue of the Audio Library - not a problem of SDFat.
Could have been found searching the PJRC Forum ;)

from sdfat-beta.

jonbro avatar jonbro commented on July 25, 2024

ok, my bad, found it:
https://forum.pjrc.com/threads/48410-Including-any-file-in-Audio-library-causes-entire-Audio-library-to-be-included

It still strikes me that it would be possible to resolve this name collision on the side of this library, rather than having ifdefs built into the audio library that detect if this library is being included.

Since we are in c++, would it make sense to namespace this library? Alternately, if you want to keep things clean from the user perspective, you could have something like

#define SDFAT_USENAMESPACE and then it would throw the whole thing inside of sdfat:: - that way you could use this next to the audio system without any errors.

from sdfat-beta.

FrankBoesing avatar FrankBoesing commented on July 25, 2024

Open an Issue here:
https://github.com/PaulStoffregen/Audio

As this is a long existing problem, it makes sense to add a reminder for Paul.

from sdfat-beta.

cfeied avatar cfeied commented on July 25, 2024

It has been a few months and the OP must surely have resolved this problem by now. I just want to say that I am running SdFat-Beta with the audio library without difficulty. To get rid of a large number of compilation errors I had to make only a very small number of changes in the audio library. Fewer than 10 lines total IIRC. Somebody else has made altered files available (slightly different from mine because I've made other patches over time) -- I'll attach them here.

I'm using SdFat-Beta for exFat cards on the built-in teensy 3.6 SD adaptor using FIFO_SDIO along with Fat32 cards on the AudioBoard SD adaptor using SPI_SHARED. I'm also using serial flash memory on the Teensy AudioAdaptor using the same SPI bus. I can read, write, copy, and move files among these three drives without difficulty. I play sounds from the SerialFlash chip or from SD02 while simultaneously writing sensor data to SD01, and it all works perfectly.

I'm attaching the changed files for the audio library.

AudioLibChanges.zip

from sdfat-beta.

PaulStoffregen avatar PaulStoffregen commented on July 25, 2024

Teensyduino 1.54 (beta) has completely removed the old Arduino SD library and now uses SdFat through a thin compatibility wrapper.

Hopefully that will fully solve this problem.

from sdfat-beta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.