[Gambas-user] Dbus mpris setting volume needs type d, but how? (Bruce Steers)

Bruce Steers bsteers4 at gmail.com
Sun Jan 29 13:08:55 CET 2023

On Sun, 29 Jan 2023 at 08:46, CD <claude.dessere at orange.fr> wrote:

> Hi,
> may be this can help :
> https://gambaswiki.org/wiki/doc/dbus#t10
> regards

Sadly not , that's info I already know , d is Double in C or Float in
But thanks anyway.

I tried
Dim f As Float = 0.5
DBus["session://" & cp.Address]["/org/mpris/MediaPlayer2",
"org.mpris.MediaPlayer2.Player"].Volume = f
DBus["session://" & cp.Address]["/org/mpris/MediaPlayer2",
"org.mpris.MediaPlayer2.Player"].Volume = CFloat(f)

It still fails saying I'm using v (Variable) and should use d (Float) type

Benoit is it a bug or am i missing something?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230129/52c47dd4/attachment.htm>

More information about the User mailing list