-
Notifications
You must be signed in to change notification settings - Fork 52
fix: rust features to disable sound #184
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
Conversation
Signed-off-by: Thomas Mauran <thomasmauran@yahoo.com>
Signed-off-by: Thomas Mauran <thomasmauran@yahoo.com>
|
Hello @craftmaster1231 I managed to make the sound feature optional on cargo build this allows anybody to use chess-tui without the sound lib ! |
|
@thomas-mauran We had a conversation in #175 |
|
Do you have a video reference with sounds should be heard? |
|
Hello @craftmaster1231 recorded on mac os after a cargo run hjkjkh.mp4 |
|
Got you. |
|
Did a build of this branch. Also no sound on it. |
|
Without pulseaudio-alsa package error messages like in #175 are still here. |
|
Hello @craftmaster1231 I'm gonna try to mute the errors in another way. Did you try to build without the sound with the feature disable I mentioned ? This is a first solution to be able to use it without the sound |
My bad, I built this branch wrong previously. Error messages are gone. :) Is it possible to use sounds optionally, depending on launch option, not a menu item or even build option? |
Oh this is actually nice, I didn't thought about that as a solution
That's nice ! this offers a way to build the game without bothering with the rodio sound lib
If indeed when we disable the sound from the menu and start the game again we dont have any error message I can make a launch option to disable it which is pretty easy ! Doing that asap and pinging you back, thank you for your time and reviews @craftmaster1231 |
Signed-off-by: Thomas Mauran <thomasmauran@yahoo.com>
|
Hello again @craftmaster1231 I made a --no-sound command available to run chess-tui without the sound on |
|
Hello @craftmaster1231 wondering if you had some time to check this out so I can merge it and release a 2.3.0 ?! |
Signed-off-by: Thomas Mauran <thomasmauran@yahoo.com>
rust feature to disable sound when building
Description
Right now when we build chess-tui we always have the sound feature enabled.
We now use rust features to build without the rodio setup for the sound.
when the sound is disabled we don't play the sound and don't have the menu item
Fixes #175
How Has This Been Tested?
Manual testing
Checklist: