[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Need help: control master volume
From: Mirko Boehm <mirko () hackerbuero ! org>
Date: 2004-03-11 22:30:01
Message-ID: 200403111730.01392.mirko () hackerbuero ! org
[Download RAW message or body]
-----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-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic