librespot
librespot copied to clipboard
Fixed volume
Add a --fixed-volume setting that keeps volume at 100%. The volume used in the spotify connect communication is logged.
I am running librespot on a raspberry pi connected to an external amplifier with an API. I want the raspberry pi to always output sound at full volume and then I will adjust the volume on the external amplifier based on the logged volume from librespot.
I think it might make more sense to add a mixer which ignores volume requests and has no filter, you get the same result with less if statements
+1 for the custom mixer, the same as MPD "null" mixer option.
I think it might make more sense to add a mixer which ignores volume requests and has no filter, you get the same result with less if statements
Good idea. I'll give it a try in a separate PR.
When doing the 100% volume in the other PR, maybe it would be possible to offer a parameter option to set at least the volume that librespot starts with?
Because I have a device where I would the default volume of librespot want to be a bit lower, instead of the 100%
I'm looking for something similar. While the solution from #163 works, it only goes one way. By reading the volume through STDOUT from librespot in python, I can hook it to my receiver's API. But there is no way of changing the app volume when I change the receiver volume. It would be nice if the app and the receiver volume are in sync all the time.
I thought of a workaround by using spotify web api to set the volume (or even reading the volume), but I think that's not so elegant as I want to avoid continuous polling to get the volume.
The other solution I was thinking about was by reading and writing it from somewhere else (file, MQTT, ...) I've tried to integrate MQTT, but Rust (and C in general) is a big step up from me and maybe a bit of overload.
Is there another way to communicate with librespot? Any recommendations what would be the best way to go?