mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #200] When using usb soundcard: "ALSA error at snd_pcm_hw_params_set_format: Invalid argument" #132
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Gerrelt on GitHub (Aug 30, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/200
I've installed go-librespot on a raspberry pi, with the rpi executable.
When using the default souncard, it works, I can connect to it, and play a song.
But when I configure the USB soundcard (hw:CARD=Device,DEV=0) in the config.yml, I get this error when pressing play in spotify:
It connects fine, but only when pressing play I get the error message, and it will not play.
Does anybody know what's going on?
This is my config.yml:
@devgianlu commented on GitHub (Aug 30, 2025):
It seems that the ALSA device does not support
SND_PCM_FORMAT_FLOAT_LE. There is an old PR trying to introduce support for other formats, perhaps you can try it?@Gerrelt commented on GitHub (Aug 30, 2025):
I will check it! Thanks.
@devgianlu commented on GitHub (Aug 30, 2025):
Marking this as duplicate of #160, we can keep discussing this there.