[GH-ISSUE #463] Pulseaudio librespot implementation not playing audio #1196

Open
opened 2026-03-14 13:54:59 +03:00 by kerem · 1 comment
Owner

Originally created by @andrewCohn on GitHub (Jun 11, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/463

Describe the bug
Streaming service using built in libre-spot not outputting audio on pulseaudio backend

To Reproduce
Compile with the following command:
cargo install spotify_player --no-default-features --features pulseaudio-backend,streaming,media-control
try to play audio using the built in librespot implementation
Expected behaviour
When I play music via the built in streaming player, i hear audio out from pulseaudio.

Log and backtrace

spotify-player-24-06-11-06-30.log

Environment

  • OS: Arch

  • Application version: spotify_player 0.18.2

  • Application features: if applicable, provide cargo features used to build spotify_player
    pulseaudio-backend,streaming,media-control

Additional context
I was able to get audio to play by compiling librespot with pulse audio, and compiling spotify_player using without streaming or pulseaudio backends, and running librespot first and using this app to control it. But it seems like the implementation of librespot in the program doesn't work correctly on my system.

In addition, I can control a broken session from my phone, so I know librespot exists and is talking to spotify. There's just nothing coming out from the audio backend.

Potentially related to issue #435

Originally created by @andrewCohn on GitHub (Jun 11, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/463 **Describe the bug** Streaming service using built in libre-spot not outputting audio on pulseaudio backend **To Reproduce** Compile with the following command: `cargo install spotify_player --no-default-features --features pulseaudio-backend,streaming,media-control` try to play audio using the built in librespot implementation **Expected behaviour** When I play music via the built in streaming player, i hear audio out from pulseaudio. **Log and backtrace** [spotify-player-24-06-11-06-30.log](https://github.com/user-attachments/files/15788760/spotify-player-24-06-11-06-30.log) **Environment** - OS: Arch - Application version: spotify_player 0.18.2 - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build `spotify_player` pulseaudio-backend,streaming,media-control **Additional context** I was able to get audio to play by compiling librespot with pulse audio, and compiling spotify_player using without streaming or pulseaudio backends, and running librespot first and using this app to control it. But it seems like the implementation of librespot in the program doesn't work correctly on my system. In addition, I can control a broken session from my phone, so I know librespot _exists_ and is talking to spotify. There's just nothing coming out from the audio backend. Potentially related to issue #435
Author
Owner

@aome510 commented on GitHub (Jul 8, 2024):

Sorry, missed this issue. Please see my note in https://github.com/aome510/spotify-player/issues/496#issuecomment-2212862946. Can you try a different audio backend instead?

<!-- gh-comment-id:2212863745 --> @aome510 commented on GitHub (Jul 8, 2024): Sorry, missed this issue. Please see my note in https://github.com/aome510/spotify-player/issues/496#issuecomment-2212862946. Can you try a different audio backend instead?
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/spotify-player#1196
No description provided.