Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 192 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ alsa-backend = ["librespot-playback/alsa-backend"]
# Integrates with the PulseAudio sound server for advanced audio routing.
pulseaudio-backend = ["librespot-playback/pulseaudio-backend"]

# pipewire-backend: PipeWire backend (Linux only).
# Modern audio server that provides low-latency audio with advanced routing capabilities.
# Designed as a replacement for both PulseAudio and JACK.
pipewire-backend = ["librespot-playback/pipewire-backend"]

# jackaudio-backend: JACK Audio Connection Kit backend.
# Professional audio backend for low-latency, high-quality audio routing.
jackaudio-backend = ["librespot-playback/jackaudio-backend"]
Expand Down
7 changes: 7 additions & 0 deletions playback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ gstreamer-backend = [
"dep:gstreamer-audio",
]
jackaudio-backend = ["dep:jack"]
pipewire-backend = ["dep:pipewire", "dep:libspa", "dep:ringbuf"]
portaudio-backend = ["dep:portaudio-rs"]
pulseaudio-backend = ["dep:libpulse-binding", "dep:libpulse-simple-binding"]
rodio-backend = ["dep:cpal", "dep:rodio"]
Expand Down Expand Up @@ -74,6 +75,12 @@ gstreamer-audio = { version = "0.24", optional = true }
libpulse-binding = { version = "2", optional = true, default-features = false }
libpulse-simple-binding = { version = "2", optional = true, default-features = false }

# Pipewire dependencies
libspa = { version = "0.9", optional = true }
pipewire = { version = "0.9", optional = true }
ringbuf = { version = "0.4", optional = true }


# Rodio dependencies
cpal = { version = "0.16", optional = true }
rodio = { version = "0.21", optional = true, default-features = false, features = [
Expand Down
7 changes: 7 additions & 0 deletions playback/src/audio_backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ mod pulseaudio;
#[cfg(feature = "pulseaudio-backend")]
use self::pulseaudio::PulseAudioSink;

#[cfg(feature = "pipewire-backend")]
mod pipewire;
#[cfg(feature = "pipewire-backend")]
use self::pipewire::PipeWireSink;

#[cfg(feature = "jackaudio-backend")]
mod jackaudio;
#[cfg(feature = "jackaudio-backend")]
Expand Down Expand Up @@ -130,6 +135,8 @@ pub const BACKENDS: &[(&str, SinkBuilder)] = &[
(PortAudioSink::NAME, mk_sink::<PortAudioSink<'_>>),
#[cfg(feature = "pulseaudio-backend")]
(PulseAudioSink::NAME, mk_sink::<PulseAudioSink>),
#[cfg(feature = "pipewire-backend")]
(PipeWireSink::NAME, mk_sink::<PipeWireSink>),
#[cfg(feature = "jackaudio-backend")]
(JackSink::NAME, mk_sink::<JackSink>),
#[cfg(feature = "gstreamer-backend")]
Expand Down
Loading
Loading