[GH-ISSUE #176] Changing the volume is slow when using external volume control #114

Closed
opened 2026-02-28 14:25:27 +03:00 by kerem · 11 comments
Owner

Originally created by @blamphos on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/176

I think this "feature" was introduced in commit eab244b. My suggestion is that timers etc. delays should be always bypassed for volume update event originating from Spotify client when using the external volume control (it can be easily controlled on the other end). Now the volume update from the Spotify client is non-responsive and the user experience is reduced compared to previous functionality before these fixes to relative volume changes.

Originally created by @blamphos on GitHub (Mar 14, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/176 I think this "feature" was introduced in commit eab244b. My suggestion is that timers etc. delays should be always bypassed for volume update event originating from Spotify client when using the external volume control (it can be easily controlled on the other end). Now the volume update from the Spotify client is non-responsive and the user experience is reduced compared to previous functionality before these fixes to relative volume changes.
kerem 2026-02-28 14:25:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aykevl commented on GitHub (Mar 17, 2025):

I don't understand what you're reporting exactly.

  • When the volume is changed from the Spotify app, the volume is immediately applied to the output but the changed volume is only sent back with a delay to avoid API rate limiting issues.
  • When the volume is changed via the HTTP API (inside go-librespot), the volume is also immediately applied and sent back to Spotify with a delay. This is needed for the same reason.

This should work the same with external volume control, but I haven't tested it since I don't use external volume control.

<!-- gh-comment-id:2728910477 --> @aykevl commented on GitHub (Mar 17, 2025): I don't understand what you're reporting exactly. * When the volume is changed from the Spotify app, the volume is immediately applied to the output but the changed volume is only sent back with a delay to avoid API rate limiting issues. * When the volume is changed via the HTTP API (inside go-librespot), the volume is also immediately applied and sent back to Spotify with a delay. This is needed for the same reason. This _should_ work the same with external volume control, but I haven't tested it since I don't use external volume control.
Author
Owner

@blamphos commented on GitHub (Apr 14, 2025):

As background, I have two Raspberry Pi 3B+ based Volumio setups. The second setup is intentionally not updated to the latest Spotify plugin version. On both setups, I'm using a custom plugin that acts as a system controller to override ALSA volume control. This redirects volume change commands to an external system, which is a combination of a Genelec GLM adapter and a SAM speaker network that I can control directly via USB.

This setup allows me to control the system volume in a unique way directly from the Spotify application. The goal is to avoid any digital attenuation of audio samples before they reach the active speakers’ DSP stage. This ensures that room correction can be processed using the full dynamic range, and the final volume level is adjusted only at the very last stage — just before the DAC and power amplifier. That’s why I originally contacted @devgianlu to request support for external volume control in go-librespot (#10).

This setup worked perfectly for my use case until I updated setup 1 to Spotify plugin version 4.1.2 (librespot-go 0.1.3), where I encountered an issue with delayed volume control. Unfortunately, updating further to version 4.1.4 (librespot-go 0.2.0) did not resolve the issue.

Setup 2 was using Spotify plugin version 4.1.0 (librespot-go 0.0.17), and volume changes triggered from the Spotify mobile app (or from Volumio) were applied instantly. However, after updating this setup to version 4.1.4, it also started experiencing the same delayed volume changes as setup 1.

I believe it should still work as it did before, but there have been so many changes in the source code related to volume control that I haven’t been able to track all of them — especially since I'm not familiar with Go. My conclusion is that the behavior of external volume control has changed since version 4.1.0, and the delay in applying volume changes is quite frustrating and reminds me similar delay like in #10 when processing audio samples with the large output buffer (which should not happen in this case).

As you can see in the log below there is slightly over 1 second delay seen in go-librespot debug messages:

**Apr 14 19:38:00.258359 gevol go-librespot[17734]: time="2025-04-14T19:38:00+03:00" level=debug msg="update volume to 11141/65535"**
**Apr 14 19:38:01.398102 gevol go-librespot[17734]: time="2025-04-14T19:38:01+03:00" level=debug msg="put connect state because VOLUME_CHANGED"**
Apr 14 19:38:01.399576 gevol go-librespot[17734]: time="2025-04-14T19:38:01+03:00" level=trace msg="emitting websocket event: volume"
Apr 14 19:38:01.399788 gevol volumio[834]: SPOTIFY: received: {"type":"volume","data":{"value":18,"max":100}}
Apr 14 19:38:01.399788 gevol volumio[834]: SPOTIFY: RECEIVED SPOTIFY VOLUME 18
Apr 14 19:38:01.400945 gevol volumio[834]: info: Setting Volumio Volume from Spotify: 18
Apr 14 19:38:01.400945 gevol volumio[834]: info: CoreCommandRouter::executeOnPlugin: gevol , alsavolume
Apr 14 19:38:01.400945 gevol volumio[834]: info: [GEVOL] alsavolume: Set volume "18"
Apr 14 19:38:01.419634 gevol volumio[834]: info: [GEVOL] updateVolumeImp: 17 -> 18
Apr 14 19:38:01.419971 gevol volumio[834]: info: [GEVOL] getVolumeObject: {"vol":18,"mute":false,"disableVolumeControl":false}
Apr 14 19:38:01.420932 gevol volumio[834]: info: CoreStateMachine::pushState
Apr 14 19:38:01.421466 gevol volumio[834]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Apr 14 19:38:01.422032 gevol volumio[834]: info: CoreCommandRouter::volumioPushState
Apr 14 19:38:01.427175 gevol volumio[834]: info: MRS: Pushing multiroomSync output update for this device
Apr 14 19:38:01.429080 gevol volumio[834]: info: MRS: Pushing multiroomSync output
Apr 14 19:38:01.436910 gevol volumio[834]: SPOTIFY: received: {"type":"volume","data":{"value":18,"max":100}}
Apr 14 19:38:01.437288 gevol volumio[834]: SPOTIFY: RECEIVED SPOTIFY VOLUME 18
Apr 14 19:38:01.448861 gevol volumio[834]: SPOTIFY: RECEIVED VOLUMIO VOLUME 18
Apr 14 19:38:01.464127 gevol volumio[834]: info: [GEVOL] updateVolumeImp returned: 18
Apr 14 19:38:02.823951 gevol go-librespot[17734]: time="2025-04-14T19:38:02+03:00" level=trace msg="sent dealer ping"
Apr 14 19:38:02.874488 gevol go-librespot[17734]: time="2025-04-14T19:38:02+03:00" level=trace msg="received dealer pong"

Here is setup 2 downgraded from Spotify 4.1.4 to 4.1.1 (go-librespot 0.2.0 --> 0.0.17.1 respectively) and the delay is only ~150 ms between first two debug messages:

**Apr 14 19:53:02.309426 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=debug msg="update volume to 22937/65535"**
**Apr 14 19:53:02.457640 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=debug msg="put connect state because VOLUME_CHANGED"**
Apr 14 19:53:02.458014 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=trace msg="emitting websocket event: volume"
Apr 14 19:53:02.458894 gevolwarehouse volumio[15648]: SPOTIFY: received: {"type":"volume","data":{"value":35,"max":100}}
Apr 14 19:53:02.460024 gevolwarehouse volumio[15648]: SPOTIFY: RECEIVED SPOTIFY VOLUME 35
Apr 14 19:53:02.460024 gevolwarehouse volumio[15648]: info: Setting Volumio Volume from Spotify: 35
Apr 14 19:53:02.460674 gevolwarehouse volumio[15648]: info: CoreCommandRouter::executeOnPlugin: gevol , alsavolume
Apr 14 19:53:02.461070 gevolwarehouse volumio[15648]: info: [GEVOL] alsavolume: Set volume "35"
Apr 14 19:53:02.483374 gevolwarehouse volumio[15648]: info: [GEVOL] updateVolumeImp: 34 -> 35
Apr 14 19:53:02.484243 gevolwarehouse volumio[15648]: info: [GEVOL] getVolumeObject: {"vol":35,"mute":false,"disableVolumeControl":false}
Apr 14 19:53:02.486100 gevolwarehouse volumio[15648]: info: CoreStateMachine::pushState
Apr 14 19:53:02.486811 gevolwarehouse volumio[15648]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Apr 14 19:53:02.487636 gevolwarehouse volumio[15648]: info: CoreCommandRouter::volumioPushState
Apr 14 19:53:02.499736 gevolwarehouse volumio[15648]: info: MRS: Pushing multiroomSync output update for this device
Apr 14 19:53:02.501993 gevolwarehouse volumio[15648]: info: MRS: Pushing multiroomSync output
Apr 14 19:53:02.533322 gevolwarehouse volumio[15648]: SPOTIFY: RECEIVED VOLUMIO VOLUME 35
Apr 14 19:53:02.547386 gevolwarehouse volumio[15648]: info: [GEVOL] updateVolumeImp returned: 35
Apr 14 19:53:05.037878 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:05+03:00" level=debug msg="fetched chunk 4/28, size: 524288" uri="spotify:track:7DsBiqdaiDKum3OWLBE8CD"
<!-- gh-comment-id:2802136699 --> @blamphos commented on GitHub (Apr 14, 2025): As background, I have two Raspberry Pi 3B+ based Volumio setups. The second setup is intentionally not updated to the latest Spotify plugin version. On both setups, I'm using a custom plugin that acts as a system controller to override ALSA volume control. This redirects volume change commands to an external system, which is a combination of a Genelec GLM adapter and a SAM speaker network that I can control directly via USB. This setup allows me to control the system volume in a unique way directly from the Spotify application. The goal is to avoid any digital attenuation of audio samples before they reach the active speakers’ DSP stage. This ensures that room correction can be processed using the full dynamic range, and the final volume level is adjusted only at the very last stage — just before the DAC and power amplifier. That’s why I originally contacted @devgianlu to request support for external volume control in go-librespot (#10). This setup worked perfectly for my use case until I updated setup 1 to Spotify plugin version 4.1.2 (librespot-go 0.1.3), where I encountered an issue with delayed volume control. Unfortunately, updating further to version 4.1.4 (librespot-go 0.2.0) did not resolve the issue. Setup 2 was using Spotify plugin version 4.1.0 (librespot-go 0.0.17), and volume changes triggered from the Spotify mobile app (or from Volumio) were applied instantly. However, after updating this setup to version 4.1.4, it also started experiencing the same delayed volume changes as setup 1. I believe it should still work as it did before, but there have been so many changes in the source code related to volume control that I haven’t been able to track all of them — especially since I'm not familiar with Go. My conclusion is that the behavior of external volume control has changed since version 4.1.0, and the delay in applying volume changes is quite frustrating and reminds me similar delay like in #10 when processing audio samples with the large output buffer (which should not happen in this case). As you can see in the log below there is slightly over 1 second delay seen in go-librespot debug messages: ``` **Apr 14 19:38:00.258359 gevol go-librespot[17734]: time="2025-04-14T19:38:00+03:00" level=debug msg="update volume to 11141/65535"** **Apr 14 19:38:01.398102 gevol go-librespot[17734]: time="2025-04-14T19:38:01+03:00" level=debug msg="put connect state because VOLUME_CHANGED"** Apr 14 19:38:01.399576 gevol go-librespot[17734]: time="2025-04-14T19:38:01+03:00" level=trace msg="emitting websocket event: volume" Apr 14 19:38:01.399788 gevol volumio[834]: SPOTIFY: received: {"type":"volume","data":{"value":18,"max":100}} Apr 14 19:38:01.399788 gevol volumio[834]: SPOTIFY: RECEIVED SPOTIFY VOLUME 18 Apr 14 19:38:01.400945 gevol volumio[834]: info: Setting Volumio Volume from Spotify: 18 Apr 14 19:38:01.400945 gevol volumio[834]: info: CoreCommandRouter::executeOnPlugin: gevol , alsavolume Apr 14 19:38:01.400945 gevol volumio[834]: info: [GEVOL] alsavolume: Set volume "18" Apr 14 19:38:01.419634 gevol volumio[834]: info: [GEVOL] updateVolumeImp: 17 -> 18 Apr 14 19:38:01.419971 gevol volumio[834]: info: [GEVOL] getVolumeObject: {"vol":18,"mute":false,"disableVolumeControl":false} Apr 14 19:38:01.420932 gevol volumio[834]: info: CoreStateMachine::pushState Apr 14 19:38:01.421466 gevol volumio[834]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo Apr 14 19:38:01.422032 gevol volumio[834]: info: CoreCommandRouter::volumioPushState Apr 14 19:38:01.427175 gevol volumio[834]: info: MRS: Pushing multiroomSync output update for this device Apr 14 19:38:01.429080 gevol volumio[834]: info: MRS: Pushing multiroomSync output Apr 14 19:38:01.436910 gevol volumio[834]: SPOTIFY: received: {"type":"volume","data":{"value":18,"max":100}} Apr 14 19:38:01.437288 gevol volumio[834]: SPOTIFY: RECEIVED SPOTIFY VOLUME 18 Apr 14 19:38:01.448861 gevol volumio[834]: SPOTIFY: RECEIVED VOLUMIO VOLUME 18 Apr 14 19:38:01.464127 gevol volumio[834]: info: [GEVOL] updateVolumeImp returned: 18 Apr 14 19:38:02.823951 gevol go-librespot[17734]: time="2025-04-14T19:38:02+03:00" level=trace msg="sent dealer ping" Apr 14 19:38:02.874488 gevol go-librespot[17734]: time="2025-04-14T19:38:02+03:00" level=trace msg="received dealer pong" ``` Here is setup 2 downgraded from Spotify 4.1.4 to 4.1.1 (go-librespot 0.2.0 --> 0.0.17.1 respectively) and the delay is only ~150 ms between first two debug messages: ``` **Apr 14 19:53:02.309426 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=debug msg="update volume to 22937/65535"** **Apr 14 19:53:02.457640 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=debug msg="put connect state because VOLUME_CHANGED"** Apr 14 19:53:02.458014 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:02+03:00" level=trace msg="emitting websocket event: volume" Apr 14 19:53:02.458894 gevolwarehouse volumio[15648]: SPOTIFY: received: {"type":"volume","data":{"value":35,"max":100}} Apr 14 19:53:02.460024 gevolwarehouse volumio[15648]: SPOTIFY: RECEIVED SPOTIFY VOLUME 35 Apr 14 19:53:02.460024 gevolwarehouse volumio[15648]: info: Setting Volumio Volume from Spotify: 35 Apr 14 19:53:02.460674 gevolwarehouse volumio[15648]: info: CoreCommandRouter::executeOnPlugin: gevol , alsavolume Apr 14 19:53:02.461070 gevolwarehouse volumio[15648]: info: [GEVOL] alsavolume: Set volume "35" Apr 14 19:53:02.483374 gevolwarehouse volumio[15648]: info: [GEVOL] updateVolumeImp: 34 -> 35 Apr 14 19:53:02.484243 gevolwarehouse volumio[15648]: info: [GEVOL] getVolumeObject: {"vol":35,"mute":false,"disableVolumeControl":false} Apr 14 19:53:02.486100 gevolwarehouse volumio[15648]: info: CoreStateMachine::pushState Apr 14 19:53:02.486811 gevolwarehouse volumio[15648]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo Apr 14 19:53:02.487636 gevolwarehouse volumio[15648]: info: CoreCommandRouter::volumioPushState Apr 14 19:53:02.499736 gevolwarehouse volumio[15648]: info: MRS: Pushing multiroomSync output update for this device Apr 14 19:53:02.501993 gevolwarehouse volumio[15648]: info: MRS: Pushing multiroomSync output Apr 14 19:53:02.533322 gevolwarehouse volumio[15648]: SPOTIFY: RECEIVED VOLUMIO VOLUME 35 Apr 14 19:53:02.547386 gevolwarehouse volumio[15648]: info: [GEVOL] updateVolumeImp returned: 35 Apr 14 19:53:05.037878 gevolwarehouse go-librespot[15816]: time="2025-04-14T19:53:05+03:00" level=debug msg="fetched chunk 4/28, size: 524288" uri="spotify:track:7DsBiqdaiDKum3OWLBE8CD" ```
Author
Owner

@blamphos commented on GitHub (May 8, 2025):

I took the liberty of investigating this issue myself, assuming you likely have more pressing tasks. With the following fixes, my system began functioning correctly with the latest versions when using external volume control.

These fixes will also improve the behavior between go-librespot and the Volumio Spotify plugin. During my investigation, I discovered that the plugin includes a 1.5-second debounce timer and additional logic to determine whether a volume change is significant enough to apply. This is a classic case of treating the symptoms rather than the root cause—which, in this case, was improper rounding when converting floating-point volume values to integers (regression?).

@devgianlu: In my opinion, the debounce timer in the Spotify plugin is now redundant, and the logic for detecting significant changes is also unnecessary if you found out that these corrections are good.

diff --git a/cmd/daemon/controls.go b/cmd/daemon/controls.go
index 05fdff6..6791037 100644
--- a/cmd/daemon/controls.go
+++ b/cmd/daemon/controls.go
@@ -643,19 +643,27 @@ func (p *AppPlayer) advanceNext(ctx context.Context, forceNext, drop bool) (bool
 // Return the volume as an integer in the range 0..player.MaxStateVolume, as
 // used in the API.
 func (p *AppPlayer) apiVolume() uint32 {
-       return uint32(math.Ceil(float64(p.state.device.Volume*p.app.cfg.VolumeSteps) / player.MaxStateVolume))
+       return uint32(math.Floor(float64(p.state.device.Volume*p.app.cfg.VolumeSteps) / player.MaxStateVolume+0.5))
 }
diff --git a/cmd/daemon/player.go b/cmd/daemon/player.go
index f1b9fb8..72910a4 100644
--- a/cmd/daemon/player.go
+++ b/cmd/daemon/player.go
@@ -13,6 +13,7 @@ import (
        "strings"
        "sync"
        "time"
+       "math"

        "google.golang.org/protobuf/proto"

@@ -610,8 +611,9 @@ func (p *AppPlayer) Run(ctx context.Context, apiRecv <-chan ApiRequest) {
                        // limit them (otherwise we get HTTP error 429: Too many requests
                        // for user). Sending the new value after 1 second of no updates
                        // matches the Spotify Web Player.
-                       p.state.device.Volume = uint32(volume * player.MaxStateVolume)
+                       p.state.device.Volume = uint32(math.Floor(float64(volume * player.MaxStateVolume+0.5)))
                case <-volumeTimer.C:
                        // We've gone 1 second without update, send the new value now.
                        p.volumeUpdated(ctx)

<!-- gh-comment-id:2864006182 --> @blamphos commented on GitHub (May 8, 2025): I took the liberty of investigating this issue myself, assuming you likely have more pressing tasks. With the following fixes, my system began functioning correctly with the latest versions when using external volume control. These fixes will also improve the behavior between go-librespot and the Volumio Spotify plugin. During my investigation, I discovered that the plugin includes a 1.5-second debounce timer and additional logic to determine whether a volume change is significant enough to apply. This is a classic case of treating the symptoms rather than the root cause—which, in this case, was improper rounding when converting floating-point volume values to integers (regression?). @devgianlu: In my opinion, the debounce timer in the Spotify plugin is now redundant, and the logic for detecting significant changes is also unnecessary if you found out that these corrections are good. ```patch diff --git a/cmd/daemon/controls.go b/cmd/daemon/controls.go index 05fdff6..6791037 100644 --- a/cmd/daemon/controls.go +++ b/cmd/daemon/controls.go @@ -643,19 +643,27 @@ func (p *AppPlayer) advanceNext(ctx context.Context, forceNext, drop bool) (bool // Return the volume as an integer in the range 0..player.MaxStateVolume, as // used in the API. func (p *AppPlayer) apiVolume() uint32 { - return uint32(math.Ceil(float64(p.state.device.Volume*p.app.cfg.VolumeSteps) / player.MaxStateVolume)) + return uint32(math.Floor(float64(p.state.device.Volume*p.app.cfg.VolumeSteps) / player.MaxStateVolume+0.5)) } ``` ```patch diff --git a/cmd/daemon/player.go b/cmd/daemon/player.go index f1b9fb8..72910a4 100644 --- a/cmd/daemon/player.go +++ b/cmd/daemon/player.go @@ -13,6 +13,7 @@ import ( "strings" "sync" "time" + "math" "google.golang.org/protobuf/proto" @@ -610,8 +611,9 @@ func (p *AppPlayer) Run(ctx context.Context, apiRecv <-chan ApiRequest) { // limit them (otherwise we get HTTP error 429: Too many requests // for user). Sending the new value after 1 second of no updates // matches the Spotify Web Player. - p.state.device.Volume = uint32(volume * player.MaxStateVolume) + p.state.device.Volume = uint32(math.Floor(float64(volume * player.MaxStateVolume+0.5))) case <-volumeTimer.C: // We've gone 1 second without update, send the new value now. p.volumeUpdated(ctx) ```
Author
Owner

@MarcoTinn commented on GitHub (Jul 24, 2025):

Hi @blamphos
I'm getting exactly this issue, and had also spotted the debug output being delayed about 1 second (which is how I then found this update from you).

I've edited the code as you have above, and recompiled go-librespot, but It's not having any effect.

Could you give me some guidance on what you did, and if there's anything other than the above?

Thanks
Marco

<!-- gh-comment-id:3113880077 --> @MarcoTinn commented on GitHub (Jul 24, 2025): Hi @blamphos I'm getting exactly this issue, and had also spotted the debug output being delayed about 1 second (which is how I then found this update from you). I've edited the code as you have above, and recompiled go-librespot, but It's not having any effect. Could you give me some guidance on what you did, and if there's anything other than the above? Thanks Marco
Author
Owner

@blamphos commented on GitHub (Jul 25, 2025):

Hi @blamphos I'm getting exactly this issue, and had also spotted the debug output being delayed about 1 second (which is how I then found this update from you).

I've edited the code as you have above, and recompiled go-librespot, but It's not having any effect.

Could you give me some guidance on what you did, and if there's anything other than the above?

Thanks Marco

Hi Marco,

There was some other changes as well in deed. Please check all changes from my fork: github.com/blamphos/go-librespot@079b88f72b

I also edited index.js on Volumio Spotify plugin:

diff --git a/spotify/index.js b/spotify/index.js
index 9121a09..26153b8 100644
--- a/spotify/index.js
+++ b/spotify/index.js
@@ -38,7 +38,7 @@ var isInVolatileMode = false;
 var ignoreStopEvent = false;

 // Volume limiter
-var deltaVolumeTreshold = 2;
+var deltaVolumeTreshold = 1;
 var volumeDebounce;


@@ -569,7 +569,7 @@ ControllerSpotify.prototype.setSpotifyDaemonVolume = function (volume) {
     volumeDebounce = setTimeout(() => {
         self.debugLog('SETTING SPOTIFY VOLUME ' + volume);
         self.sendSpotifyLocalApiCommandWithPayload('/player/volume', { volume: volume });
-    }, 1500);
+    }, 1000);
 };

As I understand it, in the original scenario, a volume change event originating from the Spotify app combined with rounding errors in go-librespot—when converting a decimal value to an integer—caused non-linear behavior in volume adjustment when stepping the level up or down. For example, instead of a linear progression like 19, 20, 21, 22, 23, the rounding bug could result in a sequence like 19, 20, 20, 21, 22, 23.

The additional sluggishness (poor response) in volume changes was due to a 1-second debounce timeout used in go-librespot, and an attempted fix for the rounding issue between go-librespot and the Volumio Spotify plugin. This fix involved a deltaVolumeThreshold variable (defaulted to 2 steps) combined with a 1.5-second debounce timeout. As a result, a single step change could cause up to ~2.5 seconds of delay. After my fixes, the response time when changing the volume—using an external volume control—is now around ~1 second.

You're most likely referring to the fix where I prevent the volume update event coming from Spotify from writing the same value back to itself by using extra boolean in update function. This allows the debounce timeout to be safely reduced from 1 second to, for example, 150 ms

<!-- gh-comment-id:3117917104 --> @blamphos commented on GitHub (Jul 25, 2025): > Hi [@blamphos](https://github.com/blamphosHi) I'm getting exactly this issue, and had also spotted the debug output being delayed about 1 second (which is how I then found this update from you). > > I've edited the code as you have above, and recompiled go-librespot, but It's not having any effect. > > Could you give me some guidance on what you did, and if there's anything other than the above? > > Thanks Marco Hi Marco, There was some other changes as well in deed. Please check all changes from my fork: https://github.com/blamphos/go-librespot/commit/079b88f72b5206622c16ee7157ec1bac71e3bb26 I also edited index.js on Volumio Spotify plugin: ``` diff --git a/spotify/index.js b/spotify/index.js index 9121a09..26153b8 100644 --- a/spotify/index.js +++ b/spotify/index.js @@ -38,7 +38,7 @@ var isInVolatileMode = false; var ignoreStopEvent = false; // Volume limiter -var deltaVolumeTreshold = 2; +var deltaVolumeTreshold = 1; var volumeDebounce; @@ -569,7 +569,7 @@ ControllerSpotify.prototype.setSpotifyDaemonVolume = function (volume) { volumeDebounce = setTimeout(() => { self.debugLog('SETTING SPOTIFY VOLUME ' + volume); self.sendSpotifyLocalApiCommandWithPayload('/player/volume', { volume: volume }); - }, 1500); + }, 1000); }; ``` As I understand it, in the original scenario, a volume change event originating from the Spotify app combined with rounding errors in go-librespot—when converting a decimal value to an integer—caused non-linear behavior in volume adjustment when stepping the level up or down. For example, instead of a linear progression like 19, 20, 21, 22, 23, the rounding bug could result in a sequence like 19, 20, 20, 21, 22, 23. The additional sluggishness (poor response) in volume changes was due to a 1-second debounce timeout used in go-librespot, and an attempted fix for the rounding issue between go-librespot and the Volumio Spotify plugin. This fix involved a deltaVolumeThreshold variable (defaulted to 2 steps) combined with a 1.5-second debounce timeout. As a result, a single step change could cause up to ~2.5 seconds of delay. After my fixes, the response time when changing the volume—using an external volume control—is now around ~1 second. You're most likely referring to the fix where I prevent the volume update event coming from Spotify from writing the same value back to itself by using extra boolean in update function. This allows the debounce timeout to be safely reduced from 1 second to, for example, 150 ms
Author
Owner

@MarcoTinn commented on GitHub (Jul 25, 2025):

@blamphos, thanks for that. I'm not that experienced, so will slowly look through it and work out what you've done.

In the meantime, I managed to work out that commenting out these two lines in player.go worked. It removes the 1 second timer/buffer. I suspect that's not ideal, but so far so good, and maybe I'll recompile a new version based on your changes if I hit any issues with my crude fix.

Don't know how to show you GitHub-style my changes, but the two lines I commented out are lines 615 and 616 in cmd.daemon/player.go:

// volumeTimer.Reset(time.Second)
// case <-volumeTimer.C:

Thanks again for taking the time to reply.

Marco.

<!-- gh-comment-id:3119186997 --> @MarcoTinn commented on GitHub (Jul 25, 2025): @blamphos, thanks for that. I'm not that experienced, so will slowly look through it and work out what you've done. In the meantime, I managed to work out that commenting out these two lines in player.go worked. It removes the 1 second timer/buffer. I suspect that's not ideal, but so far so good, and maybe I'll recompile a new version based on your changes if I hit any issues with my crude fix. Don't know how to show you GitHub-style my changes, but the two lines I commented out are lines 615 and 616 in cmd.daemon/player.go: // volumeTimer.Reset(time.Second) // case <-volumeTimer.C: Thanks again for taking the time to reply. Marco.
Author
Owner

@blamphos commented on GitHub (Jul 25, 2025):

I recommend adopting my changes. As I already mentioned in my very first message, the change introduced in github.com/devgianlu/go-librespot@eab244b12d echoes the volume value originated from Spotify back to Spotify itself, and rapid consecutive updates will cause the error 'HTTP error 429: Too many requests for user', which is why the 1-second timeout was added.

I understand the intention was to handle volume updates uniformly regardless of where the change originates. However, with a relatively simple fix, I was able to address this: when a volume change originates from Spotify, I set a boolean flag in the handler function to indicate it (true), and the value is not echoed back. If the update comes from Volumio (or elsewhere), it is sent to Spotify—but with a much shorter timeout.

<!-- gh-comment-id:3119950858 --> @blamphos commented on GitHub (Jul 25, 2025): I recommend adopting my changes. As I already mentioned in my very first message, the change introduced in https://github.com/devgianlu/go-librespot/commit/eab244b12db0bb1c88341d1aa8a86750c8e70675 echoes the volume value originated from Spotify back to Spotify itself, and rapid consecutive updates will cause the error 'HTTP error 429: Too many requests for user', which is why the 1-second timeout was added. I understand the intention was to handle volume updates uniformly regardless of where the change originates. However, with a relatively simple fix, I was able to address this: when a volume change originates from Spotify, I set a boolean flag in the handler function to indicate it (true), and the value is not echoed back. If the update comes from Volumio (or elsewhere), it is sent to Spotify—but with a much shorter timeout.
Author
Owner

@devgianlu commented on GitHub (Jul 26, 2025):

Thank you to everybody for your contribution to solving this issue. I have revised the approach for volume handling and it feels more responsive now.

Can you give it a try and let me know if you experience the same?

<!-- gh-comment-id:3121779448 --> @devgianlu commented on GitHub (Jul 26, 2025): Thank you to everybody for your contribution to solving this issue. I have revised the approach for volume handling and it feels more responsive now. Can you give it a try and let me know if you experience the same?
Author
Owner

@blamphos commented on GitHub (Jul 27, 2025):

Hi @devgianlu, I can confirm that with these changes, the response is better, but the non-linearity in volume stepping caused by rounding errors results in a sequence where some steps are effectively "skipped." This is noticeable, for example, when using Spotify mobile app and volume buttons —sometimes a single press changes the volume, while at other times two presses are needed. As a result, not all volume levels can be set. However, the logs clearly show that Spotify sends a message for every volume step at regular intervals. I kindly suggest revisiting the corrections related to rounding errors that I mentioned my earlier post.

Jul 27 07:57:14 gevol go-librespot[29366]: time="2025-07-27T07:57:14+03:00" level=debug msg="update volume requested to 0/65535"
Jul 27 07:57:14 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 0
Jul 27 07:57:19 gevol go-librespot[29366]: time="2025-07-27T07:57:19+03:00" level=debug msg="update volume requested to 655/65535"
Jul 27 07:57:19 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 1
Jul 27 07:57:22 gevol go-librespot[29366]: time="2025-07-27T07:57:22+03:00" level=debug msg="update volume requested to 1311/65535"
Jul 27 07:57:22 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 3
Jul 27 07:57:25 gevol go-librespot[29366]: time="2025-07-27T07:57:25+03:00" level=debug msg="update volume requested to 1966/65535"
Jul 27 07:57:28 gevol go-librespot[29366]: time="2025-07-27T07:57:28+03:00" level=debug msg="update volume requested to 2621/65535"
Jul 27 07:57:28 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 4
Jul 27 07:57:30 gevol go-librespot[29366]: time="2025-07-27T07:57:30+03:00" level=debug msg="update volume requested to 3277/65535"
Jul 27 07:57:30 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 6
Jul 27 07:57:32 gevol go-librespot[29366]: time="2025-07-27T07:57:32+03:00" level=debug msg="update volume requested to 3932/65535"
Jul 27 07:57:34 gevol go-librespot[29366]: time="2025-07-27T07:57:34+03:00" level=debug msg="update volume requested to 4587/65535"
Jul 27 07:57:34 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 7
Jul 27 07:57:35 gevol go-librespot[29366]: time="2025-07-27T07:57:35+03:00" level=debug msg="update volume requested to 5243/65535"
Jul 27 07:57:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 9
Jul 27 07:57:37 gevol go-librespot[29366]: time="2025-07-27T07:57:37+03:00" level=debug msg="update volume requested to 5898/65535"
Jul 27 07:57:39 gevol go-librespot[29366]: time="2025-07-27T07:57:39+03:00" level=debug msg="update volume requested to 6553/65535"
Jul 27 07:57:39 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 10
Jul 27 07:57:40 gevol go-librespot[29366]: time="2025-07-27T07:57:40+03:00" level=debug msg="update volume requested to 7209/65535"
Jul 27 07:57:41 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 12
Jul 27 07:57:42 gevol go-librespot[29366]: time="2025-07-27T07:57:42+03:00" level=debug msg="update volume requested to 7864/65535"
Jul 27 07:57:44 gevol go-librespot[29366]: time="2025-07-27T07:57:44+03:00" level=debug msg="update volume requested to 8520/65535"
Jul 27 07:57:44 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 14
Jul 27 07:57:45 gevol go-librespot[29366]: time="2025-07-27T07:57:45+03:00" level=debug msg="update volume requested to 9175/65535"
Jul 27 07:57:46 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 15
Jul 27 07:57:47 gevol go-librespot[29366]: time="2025-07-27T07:57:47+03:00" level=debug msg="update volume requested to 9830/65535"
Jul 27 07:57:48 gevol go-librespot[29366]: time="2025-07-27T07:57:48+03:00" level=debug msg="update volume requested to 10486/65535"
Jul 27 07:57:49 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 17
Jul 27 07:57:50 gevol go-librespot[29366]: time="2025-07-27T07:57:50+03:00" level=debug msg="update volume requested to 11141/65535"
Jul 27 07:57:50 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 18
Jul 27 07:57:52 gevol go-librespot[29366]: time="2025-07-27T07:57:52+03:00" level=debug msg="update volume requested to 11796/65535"
Jul 27 07:57:53 gevol go-librespot[29366]: time="2025-07-27T07:57:53+03:00" level=debug msg="update volume requested to 12452/65535"
Jul 27 07:57:53 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 20
Jul 27 07:57:54 gevol go-librespot[29366]: time="2025-07-27T07:57:54+03:00" level=debug msg="update volume requested to 13107/65535"
Jul 27 07:57:56 gevol go-librespot[29366]: time="2025-07-27T07:57:56+03:00" level=debug msg="update volume requested to 13762/65535"
Jul 27 07:57:56 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 21
Jul 27 07:57:57 gevol go-librespot[29366]: time="2025-07-27T07:57:57+03:00" level=debug msg="update volume requested to 14418/65535"
Jul 27 07:57:58 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 23
Jul 27 07:57:59 gevol go-librespot[29366]: time="2025-07-27T07:57:59+03:00" level=debug msg="update volume requested to 15073/65535"
Jul 27 07:58:01 gevol go-librespot[29366]: time="2025-07-27T07:58:01+03:00" level=debug msg="update volume requested to 15728/65535"
Jul 27 07:58:01 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 24
Jul 27 07:58:02 gevol go-librespot[29366]: time="2025-07-27T07:58:02+03:00" level=debug msg="update volume requested to 16384/65535"
Jul 27 07:58:02 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 26
Jul 27 07:58:04 gevol go-librespot[29366]: time="2025-07-27T07:58:04+03:00" level=debug msg="update volume requested to 17039/65535"
Jul 27 07:58:05 gevol go-librespot[29366]: time="2025-07-27T07:58:05+03:00" level=debug msg="update volume requested to 17694/65535"
Jul 27 07:58:06 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 27
Jul 27 07:58:07 gevol go-librespot[29366]: time="2025-07-27T07:58:07+03:00" level=debug msg="update volume requested to 18350/65535"
Jul 27 07:58:07 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 29
Jul 27 07:58:09 gevol go-librespot[29366]: time="2025-07-27T07:58:09+03:00" level=debug msg="update volume requested to 19005/65535"
Jul 27 07:58:10 gevol go-librespot[29366]: time="2025-07-27T07:58:10+03:00" level=debug msg="update volume requested to 19661/65535"
Jul 27 07:58:10 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 31
Jul 27 07:58:12 gevol go-librespot[29366]: time="2025-07-27T07:58:12+03:00" level=debug msg="update volume requested to 20316/65535"
Jul 27 07:58:12 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 32
Jul 27 07:58:13 gevol go-librespot[29366]: time="2025-07-27T07:58:13+03:00" level=debug msg="update volume requested to 20971/65535"
Jul 27 07:58:15 gevol go-librespot[29366]: time="2025-07-27T07:58:15+03:00" level=debug msg="update volume requested to 21627/65535"
Jul 27 07:58:15 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 34
Jul 27 07:58:17 gevol go-librespot[29366]: time="2025-07-27T07:58:17+03:00" level=debug msg="update volume requested to 22282/65535"
Jul 27 07:58:17 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 35
Jul 27 07:58:19 gevol go-librespot[29366]: time="2025-07-27T07:58:19+03:00" level=debug msg="update volume requested to 22937/65535"
Jul 27 07:58:23 gevol go-librespot[29366]: time="2025-07-27T07:58:23+03:00" level=debug msg="update volume requested to 23593/65535"
Jul 27 07:58:23 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 37
Jul 27 07:58:25 gevol go-librespot[29366]: time="2025-07-27T07:58:25+03:00" level=debug msg="update volume requested to 24248/65535"
Jul 27 07:58:25 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 38
Jul 27 07:58:26 gevol go-librespot[29366]: time="2025-07-27T07:58:26+03:00" level=debug msg="update volume requested to 24903/65535"
Jul 27 07:58:28 gevol go-librespot[29366]: time="2025-07-27T07:58:28+03:00" level=debug msg="update volume requested to 25559/65535"
Jul 27 07:58:28 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 40
Jul 27 07:58:29 gevol go-librespot[29366]: time="2025-07-27T07:58:29+03:00" level=debug msg="update volume requested to 26214/65535"
Jul 27 07:58:31 gevol go-librespot[29366]: time="2025-07-27T07:58:31+03:00" level=debug msg="update volume requested to 26869/65535"
Jul 27 07:58:32 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 41
Jul 27 07:58:33 gevol go-librespot[29366]: time="2025-07-27T07:58:33+03:00" level=debug msg="update volume requested to 27525/65535"
Jul 27 07:58:33 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 43
Jul 27 07:58:34 gevol go-librespot[29366]: time="2025-07-27T07:58:34+03:00" level=debug msg="update volume requested to 28180/65535"
Jul 27 07:58:36 gevol go-librespot[29366]: time="2025-07-27T07:58:36+03:00" level=debug msg="update volume requested to 28835/65535"
Jul 27 07:58:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 44
Jul 27 07:58:38 gevol go-librespot[29366]: time="2025-07-27T07:58:38+03:00" level=debug msg="update volume requested to 29491/65535"
Jul 27 07:58:38 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 46
Jul 27 07:58:40 gevol go-librespot[29366]: time="2025-07-27T07:58:40+03:00" level=debug msg="update volume requested to 30146/65535"
Jul 27 07:58:41 gevol go-librespot[29366]: time="2025-07-27T07:58:41+03:00" level=debug msg="update volume requested to 30801/65535"
Jul 27 07:58:42 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 47
Jul 27 07:58:43 gevol go-librespot[29366]: time="2025-07-27T07:58:43+03:00" level=debug msg="update volume requested to 31457/65535"
Jul 27 07:58:43 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 49
Jul 27 07:58:45 gevol go-librespot[29366]: time="2025-07-27T07:58:45+03:00" level=debug msg="update volume requested to 32112/65535"
Jul 27 07:58:46 gevol go-librespot[29366]: time="2025-07-27T07:58:46+03:00" level=debug msg="update volume requested to 32768/65535"
Jul 27 07:58:47 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 51
Jul 27 07:58:48 gevol go-librespot[29366]: time="2025-07-27T07:58:48+03:00" level=debug msg="update volume requested to 33423/65535"
Jul 27 07:58:48 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 52
Jul 27 07:58:49 gevol go-librespot[29366]: time="2025-07-27T07:58:49+03:00" level=debug msg="update volume requested to 34078/65535"
Jul 27 07:58:51 gevol go-librespot[29366]: time="2025-07-27T07:58:51+03:00" level=debug msg="update volume requested to 34734/65535"
Jul 27 07:58:52 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 54
Jul 27 07:58:53 gevol go-librespot[29366]: time="2025-07-27T07:58:53+03:00" level=debug msg="update volume requested to 35389/65535"
Jul 27 07:58:53 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 55
Jul 27 07:58:55 gevol go-librespot[29366]: time="2025-07-27T07:58:55+03:00" level=debug msg="update volume requested to 36044/65535"
Jul 27 07:58:56 gevol go-librespot[29366]: time="2025-07-27T07:58:56+03:00" level=debug msg="update volume requested to 36700/65535"
Jul 27 07:58:57 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 57
Jul 27 07:58:58 gevol go-librespot[29366]: time="2025-07-27T07:58:58+03:00" level=debug msg="update volume requested to 37355/65535"
Jul 27 07:58:58 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 58
Jul 27 07:59:00 gevol go-librespot[29366]: time="2025-07-27T07:59:00+03:00" level=debug msg="update volume requested to 38010/65535"
Jul 27 07:59:02 gevol go-librespot[29366]: time="2025-07-27T07:59:02+03:00" level=debug msg="update volume requested to 38666/65535"
Jul 27 07:59:02 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 60
Jul 27 07:59:03 gevol go-librespot[29366]: time="2025-07-27T07:59:03+03:00" level=debug msg="update volume requested to 39321/65535"
Jul 27 07:59:05 gevol go-librespot[29366]: time="2025-07-27T07:59:05+03:00" level=debug msg="update volume requested to 39976/65535"
Jul 27 07:59:05 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 61
Jul 27 07:59:07 gevol go-librespot[29366]: time="2025-07-27T07:59:07+03:00" level=debug msg="update volume requested to 40632/65535"
Jul 27 07:59:07 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 63
Jul 27 07:59:08 gevol go-librespot[29366]: time="2025-07-27T07:59:08+03:00" level=debug msg="update volume requested to 41287/65535"
Jul 27 07:59:10 gevol go-librespot[29366]: time="2025-07-27T07:59:10+03:00" level=debug msg="update volume requested to 41942/65535"
Jul 27 07:59:10 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 64
Jul 27 07:59:12 gevol go-librespot[29366]: time="2025-07-27T07:59:12+03:00" level=debug msg="update volume requested to 42598/65535"
Jul 27 07:59:12 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 66
Jul 27 07:59:14 gevol go-librespot[29366]: time="2025-07-27T07:59:14+03:00" level=debug msg="update volume requested to 43253/65535"
Jul 27 07:59:15 gevol go-librespot[29366]: time="2025-07-27T07:59:15+03:00" level=debug msg="update volume requested to 43908/65535"
Jul 27 07:59:16 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 67
Jul 27 07:59:17 gevol go-librespot[29366]: time="2025-07-27T07:59:17+03:00" level=debug msg="update volume requested to 44564/65535"
Jul 27 07:59:17 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 69
Jul 27 07:59:18 gevol go-librespot[29366]: time="2025-07-27T07:59:18+03:00" level=debug msg="update volume requested to 45219/65535"
Jul 27 07:59:20 gevol go-librespot[29366]: time="2025-07-27T07:59:20+03:00" level=debug msg="update volume requested to 45875/65535"
Jul 27 07:59:20 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 71
Jul 27 07:59:22 gevol go-librespot[29366]: time="2025-07-27T07:59:22+03:00" level=debug msg="update volume requested to 46530/65535"
Jul 27 07:59:22 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 72
Jul 27 07:59:23 gevol go-librespot[29366]: time="2025-07-27T07:59:23+03:00" level=debug msg="update volume requested to 47185/65535"
Jul 27 07:59:25 gevol go-librespot[29366]: time="2025-07-27T07:59:25+03:00" level=debug msg="update volume requested to 47841/65535"
Jul 27 07:59:25 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 74
Jul 27 07:59:27 gevol go-librespot[29366]: time="2025-07-27T07:59:27+03:00" level=debug msg="update volume requested to 48496/65535"
Jul 27 07:59:27 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 75
Jul 27 07:59:28 gevol go-librespot[29366]: time="2025-07-27T07:59:28+03:00" level=debug msg="update volume requested to 49151/65535"
Jul 27 07:59:30 gevol go-librespot[29366]: time="2025-07-27T07:59:30+03:00" level=debug msg="update volume requested to 49807/65535"
Jul 27 07:59:30 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 77
Jul 27 07:59:32 gevol go-librespot[29366]: time="2025-07-27T07:59:32+03:00" level=debug msg="update volume requested to 50462/65535"
Jul 27 07:59:32 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 78
Jul 27 07:59:33 gevol go-librespot[29366]: time="2025-07-27T07:59:33+03:00" level=debug msg="update volume requested to 51117/65535"
Jul 27 07:59:35 gevol go-librespot[29366]: time="2025-07-27T07:59:35+03:00" level=debug msg="update volume requested to 51773/65535"
Jul 27 07:59:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 80
Jul 27 07:59:37 gevol go-librespot[29366]: time="2025-07-27T07:59:37+03:00" level=debug msg="update volume requested to 52428/65535"
Jul 27 07:59:39 gevol go-librespot[29366]: time="2025-07-27T07:59:39+03:00" level=debug msg="update volume requested to 53083/65535"
Jul 27 07:59:39 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 81
Jul 27 07:59:40 gevol go-librespot[29366]: time="2025-07-27T07:59:40+03:00" level=debug msg="update volume requested to 53739/65535"
Jul 27 07:59:41 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 83
Jul 27 07:59:42 gevol go-librespot[29366]: time="2025-07-27T07:59:42+03:00" level=debug msg="update volume requested to 54394/65535"
Jul 27 07:59:44 gevol go-librespot[29366]: time="2025-07-27T07:59:44+03:00" level=debug msg="update volume requested to 55049/65535"
Jul 27 07:59:44 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 84
Jul 27 07:59:45 gevol go-librespot[29366]: time="2025-07-27T07:59:45+03:00" level=debug msg="update volume requested to 55705/65535"
Jul 27 07:59:46 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 86
Jul 27 07:59:47 gevol go-librespot[29366]: time="2025-07-27T07:59:47+03:00" level=debug msg="update volume requested to 56360/65535"
Jul 27 07:59:48 gevol go-librespot[29366]: time="2025-07-27T07:59:48+03:00" level=debug msg="update volume requested to 57015/65535"
Jul 27 07:59:49 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 87
Jul 27 07:59:50 gevol go-librespot[29366]: time="2025-07-27T07:59:50+03:00" level=debug msg="update volume requested to 57671/65535"
Jul 27 07:59:50 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 89
Jul 27 07:59:52 gevol go-librespot[29366]: time="2025-07-27T07:59:52+03:00" level=debug msg="update volume requested to 58326/65535"
Jul 27 07:59:53 gevol go-librespot[29366]: time="2025-07-27T07:59:53+03:00" level=debug msg="update volume requested to 58982/65535"
Jul 27 07:59:54 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 91
Jul 27 07:59:55 gevol go-librespot[29366]: time="2025-07-27T07:59:55+03:00" level=debug msg="update volume requested to 59637/65535"
Jul 27 07:59:55 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 92
Jul 27 07:59:56 gevol go-librespot[29366]: time="2025-07-27T07:59:56+03:00" level=debug msg="update volume requested to 60292/65535"
Jul 27 07:59:59 gevol go-librespot[29366]: time="2025-07-27T07:59:59+03:00" level=debug msg="update volume requested to 60948/65535"
Jul 27 07:59:59 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 94
Jul 27 08:00:00 gevol go-librespot[29366]: time="2025-07-27T08:00:00+03:00" level=debug msg="update volume requested to 61603/65535"
Jul 27 08:00:01 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 95
Jul 27 08:00:02 gevol go-librespot[29366]: time="2025-07-27T08:00:02+03:00" level=debug msg="update volume requested to 62258/65535"
Jul 27 08:00:04 gevol go-librespot[29366]: time="2025-07-27T08:00:04+03:00" level=debug msg="update volume requested to 62914/65535"
Jul 27 08:00:04 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 97
Jul 27 08:00:05 gevol go-librespot[29366]: time="2025-07-27T08:00:05+03:00" level=debug msg="update volume requested to 63569/65535"
Jul 27 08:00:06 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 98
Jul 27 08:00:07 gevol go-librespot[29366]: time="2025-07-27T08:00:07+03:00" level=debug msg="update volume requested to 64224/65535"
Jul 27 08:00:11 gevol go-librespot[29366]: time="2025-07-27T08:00:11+03:00" level=debug msg="update volume requested to 64880/65535"
Jul 27 08:00:11 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 100
Jul 27 08:00:14 gevol go-librespot[29366]: time="2025-07-27T08:00:14+03:00" level=debug msg="update volume requested to 65535/65535"
<!-- gh-comment-id:3123990736 --> @blamphos commented on GitHub (Jul 27, 2025): Hi @devgianlu, I can confirm that with these changes, the response is better, but the non-linearity in volume stepping caused by rounding errors results in a sequence where some steps are effectively "skipped." This is noticeable, for example, when using Spotify mobile app and volume buttons —sometimes a single press changes the volume, while at other times two presses are needed. As a result, not all volume levels can be set. However, the logs clearly show that Spotify sends a message for every volume step at regular intervals. I kindly suggest revisiting the corrections related to rounding errors that I mentioned my earlier post. ``` Jul 27 07:57:14 gevol go-librespot[29366]: time="2025-07-27T07:57:14+03:00" level=debug msg="update volume requested to 0/65535" Jul 27 07:57:14 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 0 Jul 27 07:57:19 gevol go-librespot[29366]: time="2025-07-27T07:57:19+03:00" level=debug msg="update volume requested to 655/65535" Jul 27 07:57:19 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 1 Jul 27 07:57:22 gevol go-librespot[29366]: time="2025-07-27T07:57:22+03:00" level=debug msg="update volume requested to 1311/65535" Jul 27 07:57:22 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 3 Jul 27 07:57:25 gevol go-librespot[29366]: time="2025-07-27T07:57:25+03:00" level=debug msg="update volume requested to 1966/65535" Jul 27 07:57:28 gevol go-librespot[29366]: time="2025-07-27T07:57:28+03:00" level=debug msg="update volume requested to 2621/65535" Jul 27 07:57:28 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 4 Jul 27 07:57:30 gevol go-librespot[29366]: time="2025-07-27T07:57:30+03:00" level=debug msg="update volume requested to 3277/65535" Jul 27 07:57:30 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 6 Jul 27 07:57:32 gevol go-librespot[29366]: time="2025-07-27T07:57:32+03:00" level=debug msg="update volume requested to 3932/65535" Jul 27 07:57:34 gevol go-librespot[29366]: time="2025-07-27T07:57:34+03:00" level=debug msg="update volume requested to 4587/65535" Jul 27 07:57:34 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 7 Jul 27 07:57:35 gevol go-librespot[29366]: time="2025-07-27T07:57:35+03:00" level=debug msg="update volume requested to 5243/65535" Jul 27 07:57:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 9 Jul 27 07:57:37 gevol go-librespot[29366]: time="2025-07-27T07:57:37+03:00" level=debug msg="update volume requested to 5898/65535" Jul 27 07:57:39 gevol go-librespot[29366]: time="2025-07-27T07:57:39+03:00" level=debug msg="update volume requested to 6553/65535" Jul 27 07:57:39 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 10 Jul 27 07:57:40 gevol go-librespot[29366]: time="2025-07-27T07:57:40+03:00" level=debug msg="update volume requested to 7209/65535" Jul 27 07:57:41 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 12 Jul 27 07:57:42 gevol go-librespot[29366]: time="2025-07-27T07:57:42+03:00" level=debug msg="update volume requested to 7864/65535" Jul 27 07:57:44 gevol go-librespot[29366]: time="2025-07-27T07:57:44+03:00" level=debug msg="update volume requested to 8520/65535" Jul 27 07:57:44 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 14 Jul 27 07:57:45 gevol go-librespot[29366]: time="2025-07-27T07:57:45+03:00" level=debug msg="update volume requested to 9175/65535" Jul 27 07:57:46 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 15 Jul 27 07:57:47 gevol go-librespot[29366]: time="2025-07-27T07:57:47+03:00" level=debug msg="update volume requested to 9830/65535" Jul 27 07:57:48 gevol go-librespot[29366]: time="2025-07-27T07:57:48+03:00" level=debug msg="update volume requested to 10486/65535" Jul 27 07:57:49 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 17 Jul 27 07:57:50 gevol go-librespot[29366]: time="2025-07-27T07:57:50+03:00" level=debug msg="update volume requested to 11141/65535" Jul 27 07:57:50 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 18 Jul 27 07:57:52 gevol go-librespot[29366]: time="2025-07-27T07:57:52+03:00" level=debug msg="update volume requested to 11796/65535" Jul 27 07:57:53 gevol go-librespot[29366]: time="2025-07-27T07:57:53+03:00" level=debug msg="update volume requested to 12452/65535" Jul 27 07:57:53 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 20 Jul 27 07:57:54 gevol go-librespot[29366]: time="2025-07-27T07:57:54+03:00" level=debug msg="update volume requested to 13107/65535" Jul 27 07:57:56 gevol go-librespot[29366]: time="2025-07-27T07:57:56+03:00" level=debug msg="update volume requested to 13762/65535" Jul 27 07:57:56 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 21 Jul 27 07:57:57 gevol go-librespot[29366]: time="2025-07-27T07:57:57+03:00" level=debug msg="update volume requested to 14418/65535" Jul 27 07:57:58 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 23 Jul 27 07:57:59 gevol go-librespot[29366]: time="2025-07-27T07:57:59+03:00" level=debug msg="update volume requested to 15073/65535" Jul 27 07:58:01 gevol go-librespot[29366]: time="2025-07-27T07:58:01+03:00" level=debug msg="update volume requested to 15728/65535" Jul 27 07:58:01 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 24 Jul 27 07:58:02 gevol go-librespot[29366]: time="2025-07-27T07:58:02+03:00" level=debug msg="update volume requested to 16384/65535" Jul 27 07:58:02 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 26 Jul 27 07:58:04 gevol go-librespot[29366]: time="2025-07-27T07:58:04+03:00" level=debug msg="update volume requested to 17039/65535" Jul 27 07:58:05 gevol go-librespot[29366]: time="2025-07-27T07:58:05+03:00" level=debug msg="update volume requested to 17694/65535" Jul 27 07:58:06 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 27 Jul 27 07:58:07 gevol go-librespot[29366]: time="2025-07-27T07:58:07+03:00" level=debug msg="update volume requested to 18350/65535" Jul 27 07:58:07 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 29 Jul 27 07:58:09 gevol go-librespot[29366]: time="2025-07-27T07:58:09+03:00" level=debug msg="update volume requested to 19005/65535" Jul 27 07:58:10 gevol go-librespot[29366]: time="2025-07-27T07:58:10+03:00" level=debug msg="update volume requested to 19661/65535" Jul 27 07:58:10 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 31 Jul 27 07:58:12 gevol go-librespot[29366]: time="2025-07-27T07:58:12+03:00" level=debug msg="update volume requested to 20316/65535" Jul 27 07:58:12 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 32 Jul 27 07:58:13 gevol go-librespot[29366]: time="2025-07-27T07:58:13+03:00" level=debug msg="update volume requested to 20971/65535" Jul 27 07:58:15 gevol go-librespot[29366]: time="2025-07-27T07:58:15+03:00" level=debug msg="update volume requested to 21627/65535" Jul 27 07:58:15 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 34 Jul 27 07:58:17 gevol go-librespot[29366]: time="2025-07-27T07:58:17+03:00" level=debug msg="update volume requested to 22282/65535" Jul 27 07:58:17 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 35 Jul 27 07:58:19 gevol go-librespot[29366]: time="2025-07-27T07:58:19+03:00" level=debug msg="update volume requested to 22937/65535" Jul 27 07:58:23 gevol go-librespot[29366]: time="2025-07-27T07:58:23+03:00" level=debug msg="update volume requested to 23593/65535" Jul 27 07:58:23 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 37 Jul 27 07:58:25 gevol go-librespot[29366]: time="2025-07-27T07:58:25+03:00" level=debug msg="update volume requested to 24248/65535" Jul 27 07:58:25 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 38 Jul 27 07:58:26 gevol go-librespot[29366]: time="2025-07-27T07:58:26+03:00" level=debug msg="update volume requested to 24903/65535" Jul 27 07:58:28 gevol go-librespot[29366]: time="2025-07-27T07:58:28+03:00" level=debug msg="update volume requested to 25559/65535" Jul 27 07:58:28 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 40 Jul 27 07:58:29 gevol go-librespot[29366]: time="2025-07-27T07:58:29+03:00" level=debug msg="update volume requested to 26214/65535" Jul 27 07:58:31 gevol go-librespot[29366]: time="2025-07-27T07:58:31+03:00" level=debug msg="update volume requested to 26869/65535" Jul 27 07:58:32 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 41 Jul 27 07:58:33 gevol go-librespot[29366]: time="2025-07-27T07:58:33+03:00" level=debug msg="update volume requested to 27525/65535" Jul 27 07:58:33 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 43 Jul 27 07:58:34 gevol go-librespot[29366]: time="2025-07-27T07:58:34+03:00" level=debug msg="update volume requested to 28180/65535" Jul 27 07:58:36 gevol go-librespot[29366]: time="2025-07-27T07:58:36+03:00" level=debug msg="update volume requested to 28835/65535" Jul 27 07:58:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 44 Jul 27 07:58:38 gevol go-librespot[29366]: time="2025-07-27T07:58:38+03:00" level=debug msg="update volume requested to 29491/65535" Jul 27 07:58:38 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 46 Jul 27 07:58:40 gevol go-librespot[29366]: time="2025-07-27T07:58:40+03:00" level=debug msg="update volume requested to 30146/65535" Jul 27 07:58:41 gevol go-librespot[29366]: time="2025-07-27T07:58:41+03:00" level=debug msg="update volume requested to 30801/65535" Jul 27 07:58:42 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 47 Jul 27 07:58:43 gevol go-librespot[29366]: time="2025-07-27T07:58:43+03:00" level=debug msg="update volume requested to 31457/65535" Jul 27 07:58:43 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 49 Jul 27 07:58:45 gevol go-librespot[29366]: time="2025-07-27T07:58:45+03:00" level=debug msg="update volume requested to 32112/65535" Jul 27 07:58:46 gevol go-librespot[29366]: time="2025-07-27T07:58:46+03:00" level=debug msg="update volume requested to 32768/65535" Jul 27 07:58:47 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 51 Jul 27 07:58:48 gevol go-librespot[29366]: time="2025-07-27T07:58:48+03:00" level=debug msg="update volume requested to 33423/65535" Jul 27 07:58:48 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 52 Jul 27 07:58:49 gevol go-librespot[29366]: time="2025-07-27T07:58:49+03:00" level=debug msg="update volume requested to 34078/65535" Jul 27 07:58:51 gevol go-librespot[29366]: time="2025-07-27T07:58:51+03:00" level=debug msg="update volume requested to 34734/65535" Jul 27 07:58:52 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 54 Jul 27 07:58:53 gevol go-librespot[29366]: time="2025-07-27T07:58:53+03:00" level=debug msg="update volume requested to 35389/65535" Jul 27 07:58:53 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 55 Jul 27 07:58:55 gevol go-librespot[29366]: time="2025-07-27T07:58:55+03:00" level=debug msg="update volume requested to 36044/65535" Jul 27 07:58:56 gevol go-librespot[29366]: time="2025-07-27T07:58:56+03:00" level=debug msg="update volume requested to 36700/65535" Jul 27 07:58:57 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 57 Jul 27 07:58:58 gevol go-librespot[29366]: time="2025-07-27T07:58:58+03:00" level=debug msg="update volume requested to 37355/65535" Jul 27 07:58:58 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 58 Jul 27 07:59:00 gevol go-librespot[29366]: time="2025-07-27T07:59:00+03:00" level=debug msg="update volume requested to 38010/65535" Jul 27 07:59:02 gevol go-librespot[29366]: time="2025-07-27T07:59:02+03:00" level=debug msg="update volume requested to 38666/65535" Jul 27 07:59:02 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 60 Jul 27 07:59:03 gevol go-librespot[29366]: time="2025-07-27T07:59:03+03:00" level=debug msg="update volume requested to 39321/65535" Jul 27 07:59:05 gevol go-librespot[29366]: time="2025-07-27T07:59:05+03:00" level=debug msg="update volume requested to 39976/65535" Jul 27 07:59:05 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 61 Jul 27 07:59:07 gevol go-librespot[29366]: time="2025-07-27T07:59:07+03:00" level=debug msg="update volume requested to 40632/65535" Jul 27 07:59:07 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 63 Jul 27 07:59:08 gevol go-librespot[29366]: time="2025-07-27T07:59:08+03:00" level=debug msg="update volume requested to 41287/65535" Jul 27 07:59:10 gevol go-librespot[29366]: time="2025-07-27T07:59:10+03:00" level=debug msg="update volume requested to 41942/65535" Jul 27 07:59:10 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 64 Jul 27 07:59:12 gevol go-librespot[29366]: time="2025-07-27T07:59:12+03:00" level=debug msg="update volume requested to 42598/65535" Jul 27 07:59:12 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 66 Jul 27 07:59:14 gevol go-librespot[29366]: time="2025-07-27T07:59:14+03:00" level=debug msg="update volume requested to 43253/65535" Jul 27 07:59:15 gevol go-librespot[29366]: time="2025-07-27T07:59:15+03:00" level=debug msg="update volume requested to 43908/65535" Jul 27 07:59:16 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 67 Jul 27 07:59:17 gevol go-librespot[29366]: time="2025-07-27T07:59:17+03:00" level=debug msg="update volume requested to 44564/65535" Jul 27 07:59:17 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 69 Jul 27 07:59:18 gevol go-librespot[29366]: time="2025-07-27T07:59:18+03:00" level=debug msg="update volume requested to 45219/65535" Jul 27 07:59:20 gevol go-librespot[29366]: time="2025-07-27T07:59:20+03:00" level=debug msg="update volume requested to 45875/65535" Jul 27 07:59:20 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 71 Jul 27 07:59:22 gevol go-librespot[29366]: time="2025-07-27T07:59:22+03:00" level=debug msg="update volume requested to 46530/65535" Jul 27 07:59:22 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 72 Jul 27 07:59:23 gevol go-librespot[29366]: time="2025-07-27T07:59:23+03:00" level=debug msg="update volume requested to 47185/65535" Jul 27 07:59:25 gevol go-librespot[29366]: time="2025-07-27T07:59:25+03:00" level=debug msg="update volume requested to 47841/65535" Jul 27 07:59:25 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 74 Jul 27 07:59:27 gevol go-librespot[29366]: time="2025-07-27T07:59:27+03:00" level=debug msg="update volume requested to 48496/65535" Jul 27 07:59:27 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 75 Jul 27 07:59:28 gevol go-librespot[29366]: time="2025-07-27T07:59:28+03:00" level=debug msg="update volume requested to 49151/65535" Jul 27 07:59:30 gevol go-librespot[29366]: time="2025-07-27T07:59:30+03:00" level=debug msg="update volume requested to 49807/65535" Jul 27 07:59:30 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 77 Jul 27 07:59:32 gevol go-librespot[29366]: time="2025-07-27T07:59:32+03:00" level=debug msg="update volume requested to 50462/65535" Jul 27 07:59:32 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 78 Jul 27 07:59:33 gevol go-librespot[29366]: time="2025-07-27T07:59:33+03:00" level=debug msg="update volume requested to 51117/65535" Jul 27 07:59:35 gevol go-librespot[29366]: time="2025-07-27T07:59:35+03:00" level=debug msg="update volume requested to 51773/65535" Jul 27 07:59:36 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 80 Jul 27 07:59:37 gevol go-librespot[29366]: time="2025-07-27T07:59:37+03:00" level=debug msg="update volume requested to 52428/65535" Jul 27 07:59:39 gevol go-librespot[29366]: time="2025-07-27T07:59:39+03:00" level=debug msg="update volume requested to 53083/65535" Jul 27 07:59:39 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 81 Jul 27 07:59:40 gevol go-librespot[29366]: time="2025-07-27T07:59:40+03:00" level=debug msg="update volume requested to 53739/65535" Jul 27 07:59:41 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 83 Jul 27 07:59:42 gevol go-librespot[29366]: time="2025-07-27T07:59:42+03:00" level=debug msg="update volume requested to 54394/65535" Jul 27 07:59:44 gevol go-librespot[29366]: time="2025-07-27T07:59:44+03:00" level=debug msg="update volume requested to 55049/65535" Jul 27 07:59:44 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 84 Jul 27 07:59:45 gevol go-librespot[29366]: time="2025-07-27T07:59:45+03:00" level=debug msg="update volume requested to 55705/65535" Jul 27 07:59:46 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 86 Jul 27 07:59:47 gevol go-librespot[29366]: time="2025-07-27T07:59:47+03:00" level=debug msg="update volume requested to 56360/65535" Jul 27 07:59:48 gevol go-librespot[29366]: time="2025-07-27T07:59:48+03:00" level=debug msg="update volume requested to 57015/65535" Jul 27 07:59:49 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 87 Jul 27 07:59:50 gevol go-librespot[29366]: time="2025-07-27T07:59:50+03:00" level=debug msg="update volume requested to 57671/65535" Jul 27 07:59:50 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 89 Jul 27 07:59:52 gevol go-librespot[29366]: time="2025-07-27T07:59:52+03:00" level=debug msg="update volume requested to 58326/65535" Jul 27 07:59:53 gevol go-librespot[29366]: time="2025-07-27T07:59:53+03:00" level=debug msg="update volume requested to 58982/65535" Jul 27 07:59:54 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 91 Jul 27 07:59:55 gevol go-librespot[29366]: time="2025-07-27T07:59:55+03:00" level=debug msg="update volume requested to 59637/65535" Jul 27 07:59:55 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 92 Jul 27 07:59:56 gevol go-librespot[29366]: time="2025-07-27T07:59:56+03:00" level=debug msg="update volume requested to 60292/65535" Jul 27 07:59:59 gevol go-librespot[29366]: time="2025-07-27T07:59:59+03:00" level=debug msg="update volume requested to 60948/65535" Jul 27 07:59:59 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 94 Jul 27 08:00:00 gevol go-librespot[29366]: time="2025-07-27T08:00:00+03:00" level=debug msg="update volume requested to 61603/65535" Jul 27 08:00:01 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 95 Jul 27 08:00:02 gevol go-librespot[29366]: time="2025-07-27T08:00:02+03:00" level=debug msg="update volume requested to 62258/65535" Jul 27 08:00:04 gevol go-librespot[29366]: time="2025-07-27T08:00:04+03:00" level=debug msg="update volume requested to 62914/65535" Jul 27 08:00:04 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 97 Jul 27 08:00:05 gevol go-librespot[29366]: time="2025-07-27T08:00:05+03:00" level=debug msg="update volume requested to 63569/65535" Jul 27 08:00:06 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 98 Jul 27 08:00:07 gevol go-librespot[29366]: time="2025-07-27T08:00:07+03:00" level=debug msg="update volume requested to 64224/65535" Jul 27 08:00:11 gevol go-librespot[29366]: time="2025-07-27T08:00:11+03:00" level=debug msg="update volume requested to 64880/65535" Jul 27 08:00:11 gevol volumio[13093]: info: Setting Volumio Volume from Spotify: 100 Jul 27 08:00:14 gevol go-librespot[29366]: time="2025-07-27T08:00:14+03:00" level=debug msg="update volume requested to 65535/65535" ```
Author
Owner

@devgianlu commented on GitHub (Jul 27, 2025):

That should be fixed as well now.

<!-- gh-comment-id:3124262168 --> @devgianlu commented on GitHub (Jul 27, 2025): That should be fixed as well now.
Author
Owner

@blamphos commented on GitHub (Jul 27, 2025):

That should be fixed as well now.

Thank you @devgianlu - the volume works now as expected: responsively and regular interval (1 step).

<!-- gh-comment-id:3124349513 --> @blamphos commented on GitHub (Jul 27, 2025): > That should be fixed as well now. Thank you @devgianlu - the volume works now as expected: responsively and regular interval (1 step).
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/go-librespot#114
No description provided.