[mpris] [RFC] MPRIS2 Release Candidate

Alex Merry kde at randomguy3.me.uk
Sun Aug 8 00:58:53 CEST 2010


  On 07/08/10 19:24, Lennart Poettering wrote:
> On Fri, 30.07.10 19:26, Mirsal Ennaime (mirsal.ennaime at gmail.com) wrote:
>
>> On Fri, Jul 30, 2010 at 7:15 PM, Johannes Sasongko<sasongko at gmail.com>  wrote:
>>> Oh, and just throwing an idea out there, would SetVolume(int value) be
>>> preferable to AdjustVolume(int diff)?
>> "Volume" is a read / write property, so there is no need for a SetVolume method.
>> AdjustVolume allows client to avoid a dbus round trip in some cases.
> But uh, given that the unit of the volume is unspecified it's kinda
> weird having the client programmer choose a delta step here. What should
> he pick? 0.1? 0.05? 0.2? 0.15? it's completely arbitrary.

Oh, we had percentage points before, and that was complained about :-)

> I believe it would make more sense to have one function that allows to
> set the volume as an absolute value, plus possibly two simple functions
> "VolumeUp" and "VolumeDown" that change the volume relatively, and
> define the used volume step internally. That way it is under control of
> the mpris server implementor to define the steps used, not the clients.

You're probably right.  The whole idea of relative changes was more for 
the playback position, and I just added the AdjustVolume call because it 
fitted the pattern, which is bad reasoning of course :-)

I'm not even convinced we need relative volume adjustment, tbh.  Is 
there a good use case for it?

Alex





More information about the mpris mailing list