mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #277] [MERGED] Implement Rodio as default playback backend #858
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#858
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/277
Author: @willstott101
Created: 12/5/2018
Status: ✅ Merged
Merged: 3/20/2019
Merged by: @sashahilton00
Base:
master← Head:cpal-backend📝 Commits (10+)
8912981Initial untested VecDeque concept.ac9423dcpal backend builds. Panics building output stream on my system.b81bdcaQDH: Instantiate audio backend immediately when using "--device ?".1eb5b7dTurns out I don't have an appropriate output device.2c2bfc5Cpal -> Rodio49fd48bSink.play is not the opposite of Sink.stop in Rodio587aa9cSimple block of playback thread based on buffer size.f1be508Make rodio backend the default5ceb4dbImprove formatting and macro usage in devices list.99703a2Warn when there's a Rodio failure accessing a default device formats.📊 Changes
6 files changed (+393 additions, -1 deletions)
View changed files
📝
Cargo.lock(+262 -0)📝
Cargo.toml(+2 -1)📝
playback/Cargo.toml(+3 -0)📝
playback/src/audio_backend/mod.rs(+7 -0)➕
playback/src/audio_backend/rodio.rs(+115 -0)📝
src/main.rs(+4 -0)📄 Description
Hello, I'm new to Rust and librespot but I thought this https://github.com/librespot-org/librespot/issues/145 would be a reasonable first thing to look-at, as a vague attempt at helping to improve the cross-platform audio ecosystem and encourage projects such as Tomahawk.
I managed to get music playing with the back-end in this state... however there's a buzz when nothing is playing and the sink (in windows at least) has to be 44100 Hz for playback to work as cpal doesn't consider resampling to be in it's remit.
So I've decided to pause here, share what I've got and consider https://github.com/librespot-org/librespot/issues/195
Basically, would you prefer I had at go swapping in Rodio to handle everything it can, and reduce code here in librespot as much as possible, or perhaps use another approach... such as a Rodio back-end in the current structure with the intention of slowly removing the others.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.