librespot icon indicating copy to clipboard operation
librespot copied to clipboard

Fixed volume

Open mattiash opened this issue 7 years ago • 5 comments

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.

mattiash avatar Mar 09 '17 18:03 mattiash

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

romerod avatar Mar 13 '17 05:03 romerod

+1 for the custom mixer, the same as MPD "null" mixer option.

jsopenrb avatar Mar 13 '17 08:03 jsopenrb

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.

mattiash avatar Mar 13 '17 20:03 mattiash

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%

mfonville avatar Apr 07 '17 07:04 mfonville

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?

jtonk avatar Jul 11 '18 21:07 jtonk