you can play music from sd card with [Tool]Xploritto (WIP) (only unsigned 8-bit mono at 11024 Hz).
Where are you downloading these .bin
s from?
I canāt find one on the repo @Hanski linked toā¦
Iām partly wondering if thereās a compiler problem at the root of this.
Huh, GitHubās file finder is failing me then.
If I use the file finder to search for .bin
I only get PokittoLib/Examples/Aquarium256/Aquarium256.bin
showing up.
How to do that in code?
add this to My_settings.h
#define PROJ_ENABLE_SOUND 1
#define PROJ_STREAMING_MUSIC 1
#define PROJ_AUD_FREQ 11025
call this function to start playing a file
Pokitto::Sound::playMusicStream("path to file.raw",0);
to stop the playback
Pokitto::Sound::pauseMusicStream();
You are faster than meā¦
I have also made an example.
Thank you @bl_ackrain and @sbmrgd.
With some trail and error i got my own files to work. There seems to be a file name length restriction.
Would it be possible to run load music and data from a folder directory
yes, i am using folders in [Game]Celeste classic and it work fine.
Pokitto::Sound::playMusicStream("Celeste/music/music0.raw", 0);
if you want to load data and music you will need to use SDFS library because PFFS can only open one file.
I had "SakuraWarsTest.raw"
and that did not load but renaming file to "p1.raw"
did work.
How to run music on SDFS?
to use SDFS for streaming you can add this line to My_settings.h
#define PROJ_SDFS_STREAMING 1
PFFS does not support long file names, so it canāt be more than 8 characters long.
Thanks, suspected something like that was up. Reason to use PFFS as default?
Mutliple file systems making this confusing
I suppose itās because PFFS occupies much less space in flash, leaving more room for game code.