filipst / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

Volume settings for key clicks #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The key clicks do not honor the ringer nor media volumes. Can you add a setting 
for the key volume?

Original issue reported on code.google.com by docw...@gmail.com on 5 Dec 2011 at 6:24

GoogleCodeExporter commented 9 years ago
If I'm understanding it right, according to 
http://developer.android.com/reference/android/media/AudioManager.html#playSound
Effect(int, float) it's supposed to use the STREAM_MUSIC (media) volume minus 
3dB. That's not working for you?

I'll take a look what's going on. It would need to be a config setting since 
the keyboard shouldn't override the volume keys to avoid conflicts with the app 
receiving input.

Original comment by Klaus.We...@gmail.com on 6 Dec 2011 at 12:23

GoogleCodeExporter commented 9 years ago
Yeah, I typed the above from my Android Phone, so let me elaborate:

* When I type anything, the keys are insanely loud.
* Lowering the ringer volume doesn't impact the key volume.
* I just played with it and I was able to lower the media volume and it *does* 
lower the key clicks.

However, this is less than optimal, since lots of apps seem to "remember" their 
volumes and reset the media-volume back to what it was previously (which is 
usually 100%, since generally the speaker is so small).

I would suggest that you add a setting to change the volume for the keys 
separately. Alternatively, set it to something more than 3dB less than the 
*ringer* volume instead, since it generally isn't altered by programs and is 
probably a good indicator of if the user is trying to be quiet or not.

Thanks again!

Ciao!

Original comment by docw...@gmail.com on 6 Dec 2011 at 3:39

GoogleCodeExporter commented 9 years ago
I'll take a look at it - the 3dB modification is a hardcoded default when using 
the "-1" volume setting in this API but it should be possible to make it 
adjustable.

Original comment by Klaus.We...@gmail.com on 6 Dec 2011 at 9:09

GoogleCodeExporter commented 9 years ago
I've spent some time investigating this today, the logic is rather obscure. I'm 
not sure if I'll be able to disassociate it from the media volume completely, 
but I should be able to set a relative target volume to avoid unreasonably loud 
clicks when the media volume is cranked up.

Roughly speaking, I'm thinking about reading the current media and/or ringer 
volumes, and then scaling the output volume to hit a target volume. It won't be 
possible to go louder than the currently set media volume, but that shouldn't 
be a problem in practice.

Original comment by Klaus.We...@gmail.com on 5 Jul 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Please try v1.34rc5 (or later) from 
https://code.google.com/p/hackerskeyboard/downloads/list and let me know if 
this works for you. There's now a setting for click volume control in the "key 
feedback" section, and a choice of 4 volume scaling algorithms since this may 
be device dependent.

Original comment by Klaus.We...@gmail.com on 6 Jul 2012 at 12:47

GoogleCodeExporter commented 9 years ago

Original comment by Klaus.We...@gmail.com on 6 Jul 2012 at 12:49

GoogleCodeExporter commented 9 years ago
Hi,
I would like to have similar keypress volume setting as the default android 
keyboard has. (Android keyboard settings -> advanced settings -> keypress sound 
volume settings)
This would be a great feature.

Original comment by radek.ob...@gmail.com on 28 Dec 2012 at 1:55

GoogleCodeExporter commented 9 years ago
[bulk bug update]

The changes from the 1.34rcX prerelease series are included in version 1.37 as 
published on the Play Store, and this bug should be fixed. If it's still not 
working for you, please reopen or file a new bug. Thanks to everyone who helped 
with finding bugs and testing!

Original comment by Klaus.We...@gmail.com on 26 Dec 2013 at 7:12