While playing Klondike, it often happens that the solver detects a game to be no longer winnable and will display this in the status bar. However I often find the new status text just after some (or a lot) moves, which means I have to click Undo very often until I can continue with some other moves. It would really help when there was an option to play some sound at the point when the solver detects an unwinnable game so that I do not need to always pay attention after every move to the status bar.
I would like to implement it. Should it be activated in the general "Play Sounds" setting that already exists or should one be able to toggle this separately?
Definitely a secondary option, it'd be mega weird otherwise since as a normal player i wouldn't expect a sound to happen "randomly". Also which sound are you proposing to play?
(In reply to Albert Astals Cid from comment #2) > Definitely a secondary option, it'd be mega weird otherwise since as a > normal player i wouldn't expect a sound to happen "randomly". Okay will do. > Also which sound are you proposing to play? I thought about something small like /usr/share/sounds/Oxygen-Im-Low-Priority-Message.ogg But as you know I'm still very new. So any tips are helpful :)
I think that introduces a rather unwanted dependency of kpat to oxygen
(In reply to Albert Astals Cid from comment #4) > I think that introduces a rather unwanted dependency of kpat to oxygen We could just put that file into the kpat/sounds foulder and ship it with the application. Or what is the normal way to doing that?
Closer to home, several KDE Games have “losing” or “danger” sounds of one kind or another. Maybe you could use one of those. Not sure how to implement it though — clone a file, have an elaborate CMake line to find it or set up a "sound library" in libkdegames.
Thanks, I'll try to find a danger sound. The implementation is no problem. It's already working with my message sound. To switch out the sound you just have to change the soundfile path in the sound engine and in the cmakelist. I'll post a WIP merge request later today.
merge request for further discussion: https://invent.kde.org/games/kpat/-/merge_requests/5
Maybe it would be a little too much but, for the ones that mute all sounds or are deaf, on that event the background could change (maybe change hue) to give a visual hint.