mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #548] [MERGED] Use rodio for the jackaudio backend #967
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#967
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/548
Author: @Lcchy
Created: 12/13/2020
Status: ✅ Merged
Merged: 2/11/2021
Merged by: @sashahilton00
Base:
dev← Head:rodiojack-backend📝 Commits (3)
52438b1Use rodio for jackaudio backendaad4dbaMerge branch 'dev' into rodiojack-backend59f87dcAmend conditional compilation to fail on unsupported systems📊 Changes
18 files changed (+751 additions, -465 deletions)
View changed files
📝
.github/workflows/test.yml(+1 -1)➖
.travis.yml(+0 -73)📝
COMPILING.md(+1 -0)📝
Cargo.lock(+489 -337)📝
Cargo.toml(+1 -0)📝
README.md(+4 -5)📝
audio/src/fetch.rs(+7 -0)📝
connect/src/discovery.rs(+4 -1)📝
core/src/authentication.rs(+35 -0)📝
core/src/cache.rs(+13 -0)📝
core/src/config.rs(+28 -0)📝
core/src/connection/mod.rs(+4 -6)📝
core/src/session.rs(+9 -5)📝
playback/Cargo.toml(+1 -0)📝
playback/src/audio_backend/mod.rs(+19 -1)📝
playback/src/audio_backend/rodio.rs(+96 -21)📝
playback/src/player.rs(+36 -12)📝
src/main.rs(+3 -3)📄 Description
Thanks @willstott101 for updating rodio to 0.13 and making this possible!
This works as is with jack at any sample rate (and solves #316, and #343 ?)
The choice to put this in a separate feature called
rodiojack-backendis deliberate. I tried to simply add the jack cpal devices to the alsa ones all together inrodio-backendyet as alsa and jack are exclusive, this always prints an error (either jack or alsa) to the terminal when checking on available devices. This can be tested here.ps: You have to build without using the
--no-default-features, please let me know if you see how to fix this (it seems to deactivate rodio for rodiojack)FYI: I still think that having all rodio devices in one backend is better, I will try to see in the next few days if I can catch the error messages somehow
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.