mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #540] [MERGED] Improve PulseAudio backend #961
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#961
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/540
Author: @jnqnfe
Created: 11/27/2020
Status: ✅ Merged
Merged: 12/14/2020
Merged by: @sashahilton00
Base:
dev← Head:pa📝 Commits (4)
cea63e5use actual feature names rather than crate names for conditional compilation28061dfupgrade to newer PulseAudio crate dependency0411e69convert PulseAudio backend to use the available binding crates120bd88fix alignment causing format check failure📊 Changes
4 files changed (+98 additions, -103 deletions)
View changed files
📝
Cargo.lock(+42 -3)📝
playback/Cargo.toml(+3 -2)📝
playback/src/audio_backend/pulseaudio.rs(+48 -92)📝
playback/src/lib.rs(+5 -6)📄 Description
Hi, I'm not actually a librespot user, I just ended up here from noticing the dependency on such an old version of
libpulse_sysand found myself working on fixing it...This PR:
libpulse_sysdependency from v0.0.0 to v1.11+, which necessitates addition oflibpulse-simple_syssince the 'simple' components were moved to their own crate (following the one crate per system library rule). This addresses the licensing issue mentioned in issue #539 with respect to this dependency.libpulse-bindingandlibpulse-simple-bindingcrates (v2.13+), rather than the raw 'sys' layer crates, resulting in significant simplification.You may want to consider bumping the dependency of the sys layer to v1.12+ (via v2.15+ of the bindings) which implemented use of
pkg-config.One detail of the last commit that's slightly uglier than I'd like is how the
Option<String>device name attribute is used for theOption<&str>param. I'll see if I can improve the PulseAudio binding to allow it to be done in cleaner fashion.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.