Hi all,
I’m still waiting for my hardware to arrive, in the mean time I thought I’d check out some software issues…
I’m planning on experimenting with playing samples back from an sdcard to the i2s dac… I know that more than likely the card reading won’t be quick enough, but I also wanted to quickly change which file i’m reading by opening multiple file handles using the file module (plus the fatfs / sdcard / spi includes).
However, the file module is written to explicitly deny more than one file handle to be opened, the comments say:
//! For the whole application only single file handlers for read and write
//! operations are available. They are shared globally to save memory (because
//! each FatFs handler allocates more than 512 bytes to store the last read
//! sector)
//!
I was wondering if anyone’s looked into the ramifications (excuse the pun!) of changing it to allow more than one file handle to be open, and how badly the memory got affected - before I attempt to do the same!
Many thanks all
Lee