LightSaberOS icon indicating copy to clipboard operation
LightSaberOS copied to clipboard

sound font problem?

Open bigjonyz opened this issue 7 years ago • 6 comments

Hi there, great work for aspiring saber builders. I have just started building my saber. I had worked with jakesoft's usaber before, now I am trying yours. I made the hw modifications and used a simple led on pin4. The problem is when i boot up i hear a click On the speaker and see the serial print as dfplayer connected, but no sound is played. I tried to set soundfontQuantity to 1 or 2 no luck. Reformat and drag and drop files no luck. Upload the dfplayer basic test program all files are played, serial print indicate they are in the right order. soundfont.h file id numbers i have not changed and using the supplied sdcard files with no changes to names or order. What Could be the issue here? Also pressing the main button the led will lightup, so the rest of the code should be fine, just the sound.

bigjonyz avatar Sep 16 '17 02:09 bigjonyz

I'm experiencing the same issue. I hear the "Diyino" boot sound and then everything is jumbled after that

kirkyb avatar Sep 16 '17 23:09 kirkyb

For me also the same trouble. I use the DFPlayer on Arduino Nano with Neopixels and LSOS 1.5 . All other functions are correct.

ghost avatar Sep 26 '17 11:09 ghost

This is among those phenomena I never got around to find the root cause for, so I had to settle with workarounds. The things is, sometimes, and it does not happen often, if you change any part of the code, not in any how related to the DFPlayer, there is no compilation error or such, but sound simply cases to be played. Only workaround is to reshuffle the same code, or insert some dummy lines, then it starts working again. I guess this is a compiler issue and can happen any time the code is changed at any inconspicuous place. Anyway, as LSOS slowly gets obsolete, I would suggest you guys to move to FX-SaberOS. As to the problem mentioned by kirkyb, I think this might be different since at least the intro is played. In this case I would suggest to have a look at the serial monitor to see exactly where the code stucks.

Protonerd avatar Sep 26 '17 11:09 Protonerd

I have given up with the nano and decided to purchase a Stadust V2 since the code will be optimised for this board and i will be supporting its development :-)

kirkyb avatar Sep 26 '17 11:09 kirkyb

@Protonerd Thanks, i moved to FX-SaberOS and it works perfect.

ghost avatar Sep 28 '17 12:09 ghost

I have installed FX-SaberOS,but the problem remained((

Himmiko avatar Nov 15 '17 20:11 Himmiko