Epicenter
Well-Known Member
Since it seems SD card interface's DMA support is broken in the MMSP2 (or the OS in the firmware is perhaps to blame?) reading from the SD card ties up the CPU to nearly 100% capacity, making any program you're running grind to a halt for a moment when you read or write data. This is causing me some issue with OGG Vorbis playback. I'm sure I could copy the active music file to a ram-based filesystem in the Linux OS and play the data from there. But I'm not sure which subdirectory that'd be (/tmp? Would I need to mount my own ramdisk on a mount point?) or what commands from C to use to do it (I imagine they'd be parameters to system().) Anyone tried this?
Alternatively (and more conveniently) would there be a means to malloc() a RAM area, load an OGG file into it and play it with SDL_Mixer still?
Thanks for any tips.
Alternatively (and more conveniently) would there be a means to malloc() a RAM area, load an OGG file into it and play it with SDL_Mixer still?
Thanks for any tips.