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

Fixed volume #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed volume #161

wants to merge 2 commits into from

Conversation

mattiash
Copy link

@mattiash mattiash commented Mar 9, 2017

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.

@romerod
Copy link
Contributor

romerod commented Mar 13, 2017

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

@jsopenrb
Copy link
Contributor

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

@mattiash
Copy link
Author

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 mattiash mentioned this pull request Mar 14, 2017
@mfonville
Copy link

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%

@jtonk
Copy link

jtonk commented Jul 11, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants