Cargo Features

librespot-playback has no features set by default.

[dependencies]
librespot-playback = { version = "0.6.0", features = ["alsa-backend", "portaudio-backend", "pulseaudio-backend", "jackaudio-backend", "rodio-backend", "rodiojack-backend", "sdl-backend", "gstreamer-backend", "passthrough-decoder", "glib"] }
alsa-backend = alsa

Affects mixer::alsamixer

portaudio-backend = portaudio-rs
pulseaudio-backend = libpulse-binding, libpulse-simple-binding
jackaudio-backend = jack
rodio-backend = cpal, rodio

Affects rodio::mk_rodio

rodiojack-backend = rodio

Enables jack of cpal

Affects rodio::mk_rodiojack

sdl-backend = sdl2
gstreamer-backend = gstreamer, gstreamer-app, gstreamer-audio
passthrough-decoder = ogg

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

alsa alsa-backend?

Enables alsa

Backends

portaudio-rs portaudio-backend?
libpulse-binding pulseaudio-backend?
libpulse-simple-binding pulseaudio-backend?
jack jackaudio-backend?

Enables jack ^0.11

jack >0.11 requires a MSRV of 1.80

sdl2 sdl-backend?
gstreamer gstreamer-backend?
gstreamer-app gstreamer-backend?
gstreamer-audio gstreamer-backend?
glib implicit feature

Enables glib

glib:

Rust bindings for the GLib library

rodio rodio-backend? rodiojack-backend?

Enables rodio ^0.19.0

Rodio dependencies

cpal rodio-backend? rodiojack-backend?
ogg passthrough-decoder?

Enables ogg

Legacy Ogg container decoder for the passthrough decoder