Need help: control master volume

Benoit Walter b.walter at free.fr
Fri Mar 12 10:02:44 GMT 2004


Perhaps having a look at the thinkpad milo plugin can help, it is developped 
by Jonhattan Riddell and rely on software volume, too. It is already in CVS.

Benoit.

On Thursday 11 March 2004 23:30, Mirko Boehm wrote:
> 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,




More information about the kde-core-devel mailing list