mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #938] [MERGED] Fix --device argument to various backends #1152
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#1152
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/938
Author: @roderickvd
Created: 1/12/2022
Status: ✅ Merged
Merged: 1/14/2022
Merged by: @roderickvd
Base:
dev← Head:fix-pipe-subprocess-device-arg📝 Commits (2)
dac5e28Fix--deviceargument to various backendse069a0bReintroduce check for "" device name📊 Changes
5 files changed (+42 additions, -57 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
playback/src/audio_backend/pipe.rs(+15 -6)📝
playback/src/audio_backend/rodio.rs(+9 -12)📝
playback/src/audio_backend/subprocess.rs(+17 -9)📝
src/main.rs(+0 -30)📄 Description
Fixes #936.
This removes the
The ``--{}`` / ``-{}`` option is not supported by the included audio backend(s), and has no effect.message that was introduced by @JasonLG1979. I couldn't find an easy and maintainable way of implementing this in all backends (like afn supports_device() -> bool where Self:: Sizedmethod in theSinktrait) and thought that low code complexity trumps here.Also some small cleanups and the change that
pipenow creates a file if it didn't already exist.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.