mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1565] WASM Audio backend support #708
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#708
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 @AniAdamPashut on GitHub (Sep 1, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1565
Sorry for ignoring the template, I just couldn't make it work
Why Yes:
Currently we are in a state where we need to implement each audio back-end separately. This makes it hard to work on cross-platform applications, and, we will never be able to make it work for everyone (Even if we would support each back-end we could still not support the weird dude that installed TempleOS). If we support WASM, we support browsers that everyone have, thus we support everyone by default.
Furthermore, while this library is great we are coupled to native programs. We can't really use modern battle-tested UI frameworks easily (i.e. React, Angular, Vue, you do you here tbh). Now I know native UI are not-that-bad-now but I don't see it
Why Not:
Anyway, please let me know if you plan (or not) to implement support for WASM (and if you don't I might just implement it myself 🙃)
Thank you for reading and have a blessed day!
@kingosticks commented on GitHub (Sep 1, 2025):
I don't understand. Rodio is exactly a cross-platform audio library. It uses CPAL, which appears to support WASM. have you tried to use that. EDIT: I have no idea if this does actually work. There is an old issue at https://github.com/RustAudio/rodio/issues/313
librespot's general WASM support is presumably still gated by https://github.com/librespot-org/librespot/issues/530, which you maybe already saw.
@AniAdamPashut commented on GitHub (Sep 2, 2025):
Than you for pointing this out
I definitely did not see that, sorry for wasting your time.
I'll try to make it work in few days and report my experience.
Have a good day and we can close this one
ready!macro to reduce boilerplate" #1033