dheijl / swyh-rs

Stream What You Hear written in rust, inspired by SWYH.
MIT License
348 stars 15 forks source link

Is there any way to control the speaker volume, e.g., Sonos #113

Closed RobertBernstein closed 7 months ago

RobertBernstein commented 8 months ago

This app works great! I would love to be able to control the speaker output of my Sonos speakers using the Windows volume control or a volume control within the swyr-rs GUI. In order to control the volume, I need to open the Sonos app and adjust it there. Any suggestions?

Thanks!

dheijl commented 8 months ago

It is certainly feasible to control the volume using dlna, the problem is that I hate gui design, and that I don't see myself making the necessary gui changes. The logic for changing the volume is quite simple if I remember correctly. I'll give it a thought but don't hold your breath... Would a right click on a player button with a popup showing a volume slider be acceptable?

RobertBernstein commented 8 months ago

Right-clicking on a player button would be great. Thanks for even considering this.

dheijl commented 8 months ago

OK but this could take some time...

dheijl commented 7 months ago

This is probably be what you will get (WIP):

afbeelding

Apparently the values as reported by UPNP/DLNA are not very accurate, but they are close enough.

RobertBernstein commented 7 months ago

That looks really good.

dheijl commented 7 months ago

Release 1.9.5 should fix this issue.