Need help: control master volume
Mirko Boehm
mirko at hackerbuero.org
Thu Mar 11 22:30:01 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everybody,
I need help with the following issue:
Usually, notebooks ship with volume control buttons. Some models rely on
software to actually change the module, for example some Sony models. Now in
kdeutils/kmilo/kmilo_kvaio/kvaio.cpp, you will find the following method:
bool KVaio::modifyVolume(int /* step */)
{
// we increase the volume if step is gt zero, and decrease it if
// step is lt zero:
if(mClient.isAttached())
{
// add a DCOP call here
}
return false;
}
I tried a couple of ways to implement it, but nothing seems to work relyably.
For example, my prefered method (calling kmix via dcop) depends on kmix
actually running.
Another issue is that I did not find information if the volume integer values
are standardized or depend on hardware. Therefore a method which takes a
percentage or a normalized float between 0.00 and 1.00 as an argument would
be much appreciated.
Can anybody, especially the multimedia developers help me with this?
Best regards,
- --Mirko.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAUOhpYSSaITCTnKURAinMAKCEKfXAQEaFCxIoWxmDT6xMGZEPdQCfXEnU
35Ah0jZ0SJM8sOXA/rRy8Uw=
=3ogL
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list