[GH-ISSUE #139] No sound on gentoo/alsa #62

Closed
opened 2026-03-02 23:44:10 +03:00 by kerem · 7 comments
Owner

Originally created by @PetrifiedOak on GitHub (Feb 20, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/139

Describe the bug
no sound with alsa-backend

To Reproduce
1 use alsa
2 install with "cargo install spotify-player --git https://github.com/aome510/spotify-player --no-default-features --features alsa-backend"
3 no sound

Expected behavior
I can hear my music

Log and backtrace
called Result::unwrap() on an Err value: StreamError(BuildStreamError(BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_sw_params' failed with error 'EINVAL: Invalid argument'" } })),

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Gentoo linux
  • Application version: spotify-player 0.12.0
  • Application features: --no-default-features --features alsa-backend
Originally created by @PetrifiedOak on GitHub (Feb 20, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/139 **Describe the bug** no sound with alsa-backend **To Reproduce** 1 use alsa 2 install with "cargo install spotify-player --git https://github.com/aome510/spotify-player --no-default-features --features alsa-backend" 3 no sound **Expected behavior** I can hear my music **Log and backtrace** called Result::unwrap() on an Err value: StreamError(BuildStreamError(BackendSpecific { err: BackendSpecificError { description: "ALSA function 'snd_pcm_sw_params' failed with error 'EINVAL: Invalid argument'" } })), **Screenshots** If applicable, add screenshots to help explain your problem. **Environment** - OS: Gentoo linux - Application version: spotify-player 0.12.0 - Application features: --no-default-features --features alsa-backend
kerem 2026-03-02 23:44:10 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0323pin commented on GitHub (Feb 20, 2023):

I've built spotify-player 0.12.0 on Void musl yesterday with cargo build release --no-default-features --features alsa-backend and everything is working fine.

I can check which alsa packages I have installed if that could help (on mobile right now).

<!-- gh-comment-id:1437344812 --> @0323pin commented on GitHub (Feb 20, 2023): I've built `spotify-player` 0.12.0 on Void musl yesterday with `cargo build release --no-default-features --features alsa-backend` and everything is working fine. I can check which `alsa` packages I have installed if that could help (on mobile right now).
Author
Owner

@aome510 commented on GitHub (Feb 20, 2023):

@PetrifiedOak can you install/reinstall the pulseaudio-alsa package and try again? Context: https://github.com/aome510/spotify-player/issues/38#issuecomment-1136512745.

The StreamError error looks familiar, but it can be because of many things. Does using different audio backends work?

<!-- gh-comment-id:1437426260 --> @aome510 commented on GitHub (Feb 20, 2023): @PetrifiedOak can you install/reinstall the `pulseaudio-alsa` package and try again? Context: https://github.com/aome510/spotify-player/issues/38#issuecomment-1136512745. The `StreamError` error looks familiar, but it can be because of many things. Does using different audio backends work?
Author
Owner

@PetrifiedOak commented on GitHub (Feb 20, 2023):

@PetrifiedOak can you install/reinstall the pulseaudio-alsa package and try again? Context: #38 (comment).

The StreamError error looks familiar, but it can be because of many things. Does using different audio backends work?

Pulseaudio-alsa? I cant find it in the gentoo repos.

<!-- gh-comment-id:1437439614 --> @PetrifiedOak commented on GitHub (Feb 20, 2023): > @PetrifiedOak can you install/reinstall the `pulseaudio-alsa` package and try again? Context: [#38 (comment)](https://github.com/aome510/spotify-player/issues/38#issuecomment-1136512745). > > The `StreamError` error looks familiar, but it can be because of many things. Does using different audio backends work? Pulseaudio-alsa? I cant find it in the gentoo repos.
Author
Owner

@aome510 commented on GitHub (Feb 20, 2023):

Maybe https://wiki.gentoo.org/wiki/PulseAudio#No_sound could help

<!-- gh-comment-id:1437450825 --> @aome510 commented on GitHub (Feb 20, 2023): Maybe https://wiki.gentoo.org/wiki/PulseAudio#No_sound could help
Author
Owner

@PetrifiedOak commented on GitHub (Feb 20, 2023):

Maybe https://wiki.gentoo.org/wiki/PulseAudio#No_sound could help

I am using pure alsa, no pulseaudio/pipewire involved. Every other app works perfectly fine.

<!-- gh-comment-id:1437453376 --> @PetrifiedOak commented on GitHub (Feb 20, 2023): > Maybe https://wiki.gentoo.org/wiki/PulseAudio#No_sound could help I am using pure alsa, no pulseaudio/pipewire involved. Every other app works perfectly fine.
Author
Owner

@aome510 commented on GitHub (Feb 20, 2023):

Hmm, I'm afraid that there is nothing else I could help. The error is from the third-party library (librespot) that spotify-player uses for streaming. I would suggest you try different backends.

<!-- gh-comment-id:1437457719 --> @aome510 commented on GitHub (Feb 20, 2023): Hmm, I'm afraid that there is nothing else I could help. The error is from the third-party library (`librespot`) that `spotify-player` uses for streaming. I would suggest you try different [backends](https://github.com/aome510/spotify-player#audio-backend).
Author
Owner

@aome510 commented on GitHub (May 5, 2023):

Close this issue for now as it's related to a third-party library and cannot be fixed within spotify_player.

<!-- gh-comment-id:1535680008 --> @aome510 commented on GitHub (May 5, 2023): Close this issue for now as it's related to a third-party library and cannot be fixed within `spotify_player`.
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#62
No description provided.