mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #245] [MERGED] Support for alsa mixer #848
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#848
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/245
Author: @ashthespy
Created: 9/5/2018
Status: ✅ Merged
Merged: 3/25/2019
Merged by: @ashthespy
Base:
master← Head:alsa📝 Commits (8)
a67048cAdd initial support foralsamixer08cfb15Switch to latestalsa-rscrate99106c5Reworkalsahw and mixer parameters0e11470Add run time option flags forAlsaMixera80bf86Clean up alsa stragglers and typoscc6c9b2Morealsastragglers8fd0cafExplicitly setstart_thresholdand pretty print devices9cb2f49Switchalsato crates.io📊 Changes
7 files changed (+247 additions, -33 deletions)
View changed files
📝
Cargo.lock(+25 -4)📝
playback/Cargo.toml(+1 -1)📝
playback/src/audio_backend/alsa.rs(+74 -13)➕
playback/src/mixer/alsamixer.rs(+78 -0)📝
playback/src/mixer/mod.rs(+27 -4)📝
playback/src/mixer/softmixer.rs(+2 -2)📝
src/main.rs(+40 -9)📄 Description
Following up from @joerg-krause's work from https://github.com/plietar/librespot/pull/160 (#45)
Have finally found time to better understand (by just a little) the alsa hardware parameters (
snd_pcm_hw_params_t) and get this working with the latest version of thealsa-rscrate.What remains to be done is passing the mixer/card/index parameters in. I currently cheat and use environment variables, but will polish it up based on what would work best.Have exposed some new
mixer-name,mixer-cardandmixer-indexrun time flags.Also - let me know if you see gaping holes in the arithmetic for the conversion
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.