mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #820] [MERGED] Implement common SinkError and SinkResult #1099
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#1099
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/820
Author: @JasonLG1979
Created: 7/6/2021
Status: ✅ Merged
Merged: 9/27/2021
Merged by: @roderickvd
Base:
dev← Head:alsa-errors-round-two📝 Commits (8)
0e3ea3aMore Errors and code cleanup37d9fd4Implement SinkError970c621Make error messages more consistent and concise7977531Implement SinkResult24b9e1dMerge branch 'dev' into alsa-errors-round-two88c7dbbMerge branch 'dev' into alsa-errors-round-twod2e3ac0Fix branch conflictsa44042cHandle ALSA backend buffer sizing a little better.📊 Changes
10 files changed (+280 additions, -225 deletions)
View changed files
📝
playback/src/audio_backend/alsa.rs(+104 -97)📝
playback/src/audio_backend/gstreamer.rs(+3 -3)📝
playback/src/audio_backend/jackaudio.rs(+4 -4)📝
playback/src/audio_backend/mod.rs(+20 -6)📝
playback/src/audio_backend/pipe.rs(+11 -7)📝
playback/src/audio_backend/portaudio.rs(+5 -6)📝
playback/src/audio_backend/pulseaudio.rs(+77 -71)📝
playback/src/audio_backend/rodio.rs(+23 -9)📝
playback/src/audio_backend/sdl.rs(+6 -6)📝
playback/src/audio_backend/subprocess.rs(+27 -16)📄 Description
Implement common
SinkErrorandSinkResultfor use with all backends.impl From<AlsaError> for SinkErrorsoAlsaErrors can be thrown toplayerasSinkErrors.impl From<PulseError> for PulseErrorsoPulseErrors can be thrown toplayerasSinkErrors.Other backends can follow the same pattern as the alsa and pulseaudio backends for detailed errors in the future if someone wishes to implement them.
A little code clean up and added blank lines to make it easier to read at a glance.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.