-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add boot sound settings (Enable/Disable) #217
Conversation
Hmm it's a good idea but I'm note sure it's great to have bootup sound mandatory. For discretion, we need an option to disable it. Perhaps by adding config option in the menu with linked option in bruce.conf ? |
The startup sound is able to be bypassed if you press on any key during the bootup. |
It should be disabled by default, and you would be able to enable it in the config, and select which file should be played. |
Changes:
Note: I don't have a Cardputer to test with custom boot sound (.wav). Please let me know if it works as expected! Also, I'm not sure if I should use EEPROM for this or not. Note2: I've disabled the boot sound by default. Let me know if I should enable it by default instead. Need review (Cardputer)Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done!
Good job ! I'll try it tomorrow on Cardputer :) |
Yop ! If it's disabled: OK |
If I enable the bip, I can see the configuration file with adequat sound settings. |
I will check that, thank you! 😊 |
Hello, So, the first issue (the bip sound is not playing) is that Cardputer doesn't have The issue with the menu not quitting is really strange. It works on my Stick CPlus 2 (I just removed the Otherwise, if you put a .wav file in boot sound, it starts the sound at startup, right? |
Okay maybe it's because you have LittleFS and SD Card at the same time so it's doing this issue, I will check that. |
@valentin8709, could you try again and let me know if it works? By the way, should there be the boot sound even if the splash screen is bypassed? |
I think not.. if it is bypassed, bypass it all |
I tested but there are some remaining bugs (tested on Cardputer) :
|
Okay, Bruce/src/modules/others/audio.cpp Line 125 in 06a383b
|
Perhaps could you just disable the "bip" possibility on Cardputer ? |
weird bug...... 😅 |
It's so strange, on my Stick I don't have this problem, and I didn't even changed anything about the boot_screen animation... |
Hey, @valentin8709 Lines 331 to 334 in 5ebb4c6
Also try to add getConfigs(); after the LittleFS init, and comment it in the loop(); Lines 368 to 370 in 5ebb4c6
But I don't understand why this would only happen on Cardputer 😅 (not sticks) Thank you very much. |
Hi ! Sorry I do not have time to test those days =/ |
Hi @valentin8709 |
Alright alright ! |
Boot Sound Settings
Features:
Note:
I don't have a Cardputer to test with custom boot sound (.wav). Please let me know if it works as expected!
Thank you!