[GH-ISSUE #46] Fixed volume #35

Closed
opened 2026-02-27 19:28:27 +03:00 by kerem · 5 comments
Owner

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/46

Issue by mattiash
Thursday Mar 09, 2017 at 18:13 GMT
Originally opened as https://github.com/plietar/librespot/pull/161


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 included the following code: https://github.com/plietar/librespot/pull/161/commits

Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/46 <a href="https://github.com/mattiash"><img src="https://avatars0.githubusercontent.com/u/588898?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [mattiash](https://github.com/mattiash)** _Thursday Mar 09, 2017 at 18:13 GMT_ _Originally opened as https://github.com/plietar/librespot/pull/161_ ---- 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](https://github.com/mattiash)** included the following code: https://github.com/plietar/librespot/pull/161/commits_
kerem 2026-02-27 19:28:27 +03:00
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by romerod
Monday Mar 13, 2017 at 05:41 GMT


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

<!-- gh-comment-id:361261399 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/romerod"><img src="https://avatars1.githubusercontent.com/u/3213790?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [romerod](https://github.com/romerod)** _Monday Mar 13, 2017 at 05:41 GMT_ ---- 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
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by jsopenrb
Monday Mar 13, 2017 at 08:01 GMT


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

<!-- gh-comment-id:361261418 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/jsopenrb"><img src="https://avatars0.githubusercontent.com/u/19466116?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [jsopenrb](https://github.com/jsopenrb)** _Monday Mar 13, 2017 at 08:01 GMT_ ---- +1 for the custom mixer, the same as MPD "null" mixer option.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by mattiash
Monday Mar 13, 2017 at 20:37 GMT


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.

<!-- gh-comment-id:361261438 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/mattiash"><img src="https://avatars0.githubusercontent.com/u/588898?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [mattiash](https://github.com/mattiash)** _Monday Mar 13, 2017 at 20:37 GMT_ ---- > 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.
Author
Owner

@sashahilton00 commented on GitHub (Jan 29, 2018):

Comment by mfonville
Friday Apr 07, 2017 at 07:48 GMT


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%

<!-- gh-comment-id:361261464 --> @sashahilton00 commented on GitHub (Jan 29, 2018): <a href="https://github.com/mfonville"><img src="https://avatars0.githubusercontent.com/u/6221544?v=4" align="left" width="48" height="48" hspace="10"></img></a> **Comment by [mfonville](https://github.com/mfonville)** _Friday Apr 07, 2017 at 07:48 GMT_ ---- 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%
Author
Owner

@ComlOnline commented on GitHub (Jan 29, 2018):

Please see #48

<!-- gh-comment-id:361422688 --> @ComlOnline commented on GitHub (Jan 29, 2018): Please see #48
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#35
No description provided.