-
Notifications
You must be signed in to change notification settings - Fork 255
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
Let beep use system default settings #243
Conversation
Please note that the parameter 'percent' of XBell(3). Given the value of 100, the system defined setting (normally specified via xset) is ignored and the percent of 100 is used instead. When calling the bell from fltk with FL_BEEP_DEFAULT I would expect to get the default (system specified) percent setting.
Thanks for the report and the patch. However, the patch is IMHO not correct (see below) and I wonder on what platform you (@lwi) are working. Some thoughts:
See followup for possible solutions... |
That all said, what can we do? One possible solution would be to do as you (the OP, @lwi) suggested for But then we'd need to set all other values to a lower volume level which means we need to use a negative value in
What do you think about such a modified solution? Here's a possible implementation (file
As I wrote before I can't test this currently because I don't hear any sound when using Thanks in advance. |
Thanks for your reply. |
Why did you close this? I think that it would be an enhancement, at least on systems that (still) use the PC speaker and have a working XBell() function. |
I pressed the wrong button :/ Will write detailed response shortly. |
We are running Debian testing + X11. We are using the pc speaker for decades, on some hardware we even manually retro-fit a pc speaker. I cannot confirm that the XBell stopped working at any point in time. We have the bell percent set as 50 system-wide as default. When using tigervnc client (which relies on fltk) we realized that the beep was "too loud" and I traced it back to fltk which uses XBell with parameter 100 since '99 unfortunately. But similar to your writing I assume the 50/100 was meant to indicate different loudness for different severity. |
Original commit to introduce parameter value 100 is ef8eaf2 for the historically curious. |
Short reply (details later): feel free to modify my "patch" with your suggested values... |
Looks pretty clean this way. One could of course very shortly go: |
Any further objections the proposed approach? (ping) |
No, basically the patch is fine. I've been working on documentation enhancements but got stuck and have been busy with other stuff. I'll come back to this issue hopefully soon, as time permits. |
ping ;) |
pong ;) It's not forgotten and will definitely be in 1.4.0 (I added it right now to our release milestone) |
Merged. Sorry for the long delay. Thanks for the PR. FTR: I wanted to squash the commits but something went awry. Anyway, it's merged now. |
Please note that the parameter 'percent' of XBell(3).
Given the value of 100, the system defined setting
(normally specified via xset) is ignored and the
percent of 100 is used instead. When calling the
bell from fltk with FL_BEEP_DEFAULT I would expect
to get the default (system specified) percent setting.