[GH-ISSUE #135] Pausing and resuming song seems to be broken. #84

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

Originally created by @joelbolz on GitHub (Nov 7, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/135

When selecting the server go-librespot is running on as the device and playing a song, it works perfectly. I then can use the skip buttons both forwards and backwards as well as volume control. I can also tap on the "progress bar" of the song to skip ahead. Pause also works.
However, when trying to resume again, the audio does not start playing. On the spotify app, the Play/Pause button changes accordingly, but the playbackbar doesnt progress and there is no sound.

TLDR:

Steps to replicate:
Play song, pause song and press play again.

Result:
Song does not resume playing, playback bar first freezes, then skips to a random point but playback never actually resumes.

Expected result:
Song starts playing normally from the point it was paused at.

Info:
I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either)

Originally created by @joelbolz on GitHub (Nov 7, 2024). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/135 When selecting the server go-librespot is running on as the device and playing a song, it works perfectly. I then can use the skip buttons both forwards and backwards as well as volume control. I can also tap on the "progress bar" of the song to skip ahead. Pause also works. However, when trying to resume again, the audio does not start playing. On the spotify app, the Play/Pause button changes accordingly, but the playbackbar doesnt progress and there is no sound. TLDR: Steps to replicate: Play song, pause song and press play again. Result: Song does not resume playing, playback bar first freezes, then skips to a random point but playback never actually resumes. Expected result: Song starts playing normally from the point it was paused at. Info: I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either)
kerem 2026-02-28 14:25:12 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@joelbolz commented on GitHub (Nov 7, 2024):

I just noticed: on podcasts, playing after pausing actually (kind of) works: it just plays it from the very beginning of the episode instead of where it was paused.

<!-- gh-comment-id:2463180534 --> @joelbolz commented on GitHub (Nov 7, 2024): I just noticed: on podcasts, playing after pausing actually (kind of) works: it just plays it from the very beginning of the episode instead of where it was paused.
Author
Owner

@devgianlu commented on GitHub (Nov 8, 2024):

Thank you for reporting, there is temporary fix with #136, but I am waiting feedback on the best approach to fix this.

<!-- gh-comment-id:2464751084 --> @devgianlu commented on GitHub (Nov 8, 2024): Thank you for reporting, there is temporary fix with #136, but I am waiting feedback on the best approach to fix this.
Author
Owner

@aykevl commented on GitHub (Nov 8, 2024):

I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either)

You mean you use the ALSA backend (the default) with PulseAudio?
Asking, because recently native PulseAudio support got merged: https://github.com/devgianlu/go-librespot/pull/86 - it will only be enabled if you have a very recent go-librespot build and have manually set audio_backend: pulseaudio in your configuration. Using the ALSA backend with PulseAudio should work just fine, but that PR could have introduced a regression in the ALSA backend too.

<!-- gh-comment-id:2464813288 --> @aykevl commented on GitHub (Nov 8, 2024): > I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either) You mean you use the ALSA backend (the default) with PulseAudio? Asking, because recently native PulseAudio support got merged: https://github.com/devgianlu/go-librespot/pull/86 - it will only be enabled if you have a very recent go-librespot build and have manually set `audio_backend: pulseaudio` in your configuration. Using the ALSA backend with PulseAudio should work just fine, but that PR could have introduced a regression in the ALSA backend too.
Author
Owner

@joelbolz commented on GitHub (Nov 8, 2024):

Thank you for reporting, there is temporary fix with #136, but I am waiting feedback on the best approach to fix this.

Cool that's great to hear thank you man!

<!-- gh-comment-id:2464828411 --> @joelbolz commented on GitHub (Nov 8, 2024): > Thank you for reporting, there is temporary fix with #136, but I am waiting feedback on the best approach to fix this. Cool that's great to hear thank you man!
Author
Owner

@joelbolz commented on GitHub (Nov 8, 2024):

I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either)

You mean you use the ALSA backend (the default) with PulseAudio? Asking, because recently native PulseAudio support got merged: #86 - it will only be enabled if you have a very recent go-librespot build and have manually set audio_backend: pulseaudio in your configuration. Using the ALSA backend with PulseAudio should work just fine, but that PR could have introduced a regression in the ALSA backend too.

No ALSA should be disabled. To be fair I'm not really super aware of what's going on with Pulseaudio and Alsa etc. But I'm pretty sure the Pulseaudio sinks are being used.

<!-- gh-comment-id:2464830414 --> @joelbolz commented on GitHub (Nov 8, 2024): > > I am using PulseAudio, as I couldnt get the Bluetooth speaker to work with ALSA (not a go-librespot specific problem, couldnt get it to work with spocon either) > > You mean you use the ALSA backend (the default) with PulseAudio? Asking, because recently native PulseAudio support got merged: #86 - it will only be enabled if you have a very recent go-librespot build and have manually set `audio_backend: pulseaudio` in your configuration. Using the ALSA backend with PulseAudio should work just fine, but that PR could have introduced a regression in the ALSA backend too. No ALSA should be disabled. To be fair I'm not really super aware of what's going on with Pulseaudio and Alsa etc. But I'm pretty sure the Pulseaudio sinks are being used.
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#84
No description provided.