Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DBUS] Missing Volume dbus property #397

Closed
zack6849 opened this issue Oct 18, 2019 · 4 comments
Closed

[DBUS] Missing Volume dbus property #397

zack6849 opened this issue Oct 18, 2019 · 4 comments
Assignees
Labels
enhancement A new feature that would improve Spotifyd
Milestone

Comments

@zack6849
Copy link

Hi!

I noticed you're missing the Volume property (and that's the only one that's missing that I saw)

One of the programs I use relies on that, I wrote up a quick shim to implement it and just return 0, and that worked

However, i was wondering about implementing the actual player volume

I did some poking around and found this:
https://github.com/ramsayleung/rspotify/blob/master/src/spotify/model/device.rs#L12

So it does seem that the volume /should/ be accessible from the context of a current playback context, I don't know rust well enough to implement it, I gave it a shot and got this, but it failed and returned 0 consistently.

I also think it should be f64, not u32, but was just trying to keep the type consistent with what rspotify used

I've attached a patch for what I tried.
0001-DBUS-Failed-attempt-at-implementing-volume-property.patch.txt

Thanks!

@mainrs mainrs added the enhancement A new feature that would improve Spotifyd label Oct 18, 2019
@mainrs mainrs self-assigned this Oct 18, 2019
@mainrs
Copy link
Member

mainrs commented Oct 18, 2019

Thanks for reporting this!

@mainrs mainrs added this to the v0.2.19 milestone Oct 18, 2019
@mainrs mainrs modified the milestones: v0.2.20, v0.2.21 Dec 17, 2019
@mainrs mainrs modified the milestones: v0.2.21, v0.2.25 Feb 7, 2020
@zack6849
Copy link
Author

Just curious, is this going to be implemented?

@mainrs
Copy link
Member

mainrs commented Jul 21, 2020

I hope someone can step in and help me out on it. I do not have a lot of time right now (exams , ye 🥳). I am open for PRs though (always!). There are currently a bunch of unmerged ones but those are relatively big and I just don't have the time right now to skim over them in detail.

We are waiting mostly for a librespot merge to continue active, regular development. But dbus issues can be fixed in the meantime nonetheless :p

@slondr
Copy link
Member

slondr commented Jan 12, 2021

Implemented by #697

@slondr slondr closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature that would improve Spotifyd
Projects
None yet
Development

No branches or pull requests

3 participants