Succes!!!!!!! It plays sound, when i type "play" command(FAT32 helped)! Super happy!!
Now the next thing is to play the sounds, when i turn on the saber with a button. I followed the profezzorn's guide on his page but i'm little confused, how to load the sound into code. Could someone posted his code example, so i can copy it, please? I downloaded the smoothswing sound fonts but dont know, how to implement the code to react to power on/off, hum, swing and clash.
This is how my smoothswing (S2RD) folder looks like:
Good to hear you have sound playing. You can get sounds playing by fixing the paths in your presets or reorganizing the directory structure on your SD card. I recommend you restructure the files and directories, you don't need that many subdirectory levels.
profezzorn outlined the cleanest directory structure -
TeensySaber Software DiscussionIn your font directories (ie font01), don't have subfolders for each sound (ie /font01/hum, /font01/clash), even though some font packs are organized this way. Go into each subfolder and move the WAV files into the font directory. So you should have:
/font01/hum.wav
/font01/clash.wav
etc.
The tracks folder is for music (sound tracks) and it should be off the root folder, not inside each font folder, for example: /tracks might have: /tracks/cantina.wav
Now point your presets to the font you want to use:
{ "font01", "tracks/cantina.wav", StylePtr<InOutSparkTip<EasyBlade<BLUE, WHITE>, 300, 800> >(), "blue" },
So when this preset is active it will play the files found in /font01 when it needs a sound, for example to play the hum it will look for /font01/hum.wav or if you have /font01/hum01.wav and /font01/hum02.wav it will randomly select one of these 2 hums to play. Another example, when you turn on the saber it will try to play /font01/out.wav. And if you long press the power button it will play /tracks/cantina.wav as a background sound track.