librespot/playback/Cargo.toml

70 lines
2.2 KiB
TOML
Raw Normal View History

[package]
name = "librespot-playback"
2022-07-30 20:28:12 +00:00
version = "0.5.0-dev"
2022-08-01 11:10:39 +00:00
rust-version = "1.61"
authors = ["Sasha Hilton <sashahilton00@gmail.com>"]
description = "The audio playback logic for librespot"
license = "MIT"
repository = "https://github.com/librespot-org/librespot"
2022-08-02 19:42:38 +00:00
edition = "2021"
[dependencies.librespot-audio]
path = "../audio"
2022-07-30 20:28:12 +00:00
version = "0.5.0-dev"
2022-08-02 19:42:38 +00:00
[dependencies.librespot-core]
path = "../core"
2022-07-30 20:28:12 +00:00
version = "0.5.0-dev"
2022-08-02 19:42:38 +00:00
[dependencies.librespot-metadata]
path = "../metadata"
2022-07-30 20:28:12 +00:00
version = "0.5.0-dev"
[dependencies]
byteorder = "1"
2022-01-08 20:21:31 +00:00
futures-util = "0.3"
2019-07-08 08:08:32 +00:00
log = "0.4"
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
shell-words = "1.1"
thiserror = "1"
tokio = { version = "1", features = ["parking_lot", "rt", "rt-multi-thread", "sync"] }
zerocopy = "0.6"
# Backends
2022-05-23 18:14:43 +00:00
alsa = { version = "0.6", optional = true }
portaudio-rs = { version = "0.3", optional = true }
libpulse-binding = { version = "2", optional = true, default-features = false }
libpulse-simple-binding = { version = "2", optional = true, default-features = false }
2022-05-23 18:14:43 +00:00
jack = { version = "0.10", optional = true }
sdl2 = { version = "0.35", optional = true }
gstreamer = { version = "0.18", optional = true }
gstreamer-app = { version = "0.18", optional = true }
gstreamer-audio = { version = "0.18", optional = true }
glib = { version = "0.15", optional = true }
# Rodio dependencies
2022-05-23 18:14:43 +00:00
rodio = { version = "0.15", optional = true, default-features = false }
cpal = { version = "0.13", optional = true }
# Container and audio decoder
2022-02-02 00:02:14 +00:00
symphonia = { version = "0.5", default-features = false, features = ["mp3", "ogg", "vorbis"] }
# Legacy Ogg container decoder for the passthrough decoder
2022-01-25 19:46:10 +00:00
ogg = { version = "0.8", optional = true }
2021-04-13 08:29:34 +00:00
Implement dithering (#694) Dithering lowers digital-to-analog conversion ("requantization") error, linearizing output, lowering distortion and replacing it with a constant, fixed noise level, which is more pleasant to the ear than the distortion. Guidance: - On S24, S24_3 and S24, the default is to use triangular dithering. Depending on personal preference you may use Gaussian dithering instead; it's not as good objectively, but it may be preferred subjectively if you are looking for a more "analog" sound akin to tape hiss. - Advanced users who know that they have a DAC without noise shaping have a third option: high-passed dithering, which is like triangular dithering except that it moves dithering noise up in frequency where it is less audible. Note: 99% of DACs are of delta-sigma design with noise shaping, so unless you have a multibit / R2R DAC, or otherwise know what you are doing, this is not for you. - Don't dither or shape noise on S32 or F32. On F32 it's not supported anyway (there are no integer conversions and so no rounding errors) and on S32 the noise level is so far down that it is simply inaudible even after volume normalisation and control. New command line option: --dither DITHER Specify the dither algorithm to use - [none, gpdf, tpdf, tpdf_hp]. Defaults to 'tpdf' for formats S16 S24, S24_3 and 'none' for other formats. Notes: This PR also features some opportunistic improvements. Worthy of mention are: - matching reference Vorbis sample conversion techniques for lower noise - a cleanup of the convert API
2021-05-26 19:19:17 +00:00
# Dithering
rand = { version = "0.8", features = ["small_rng"] }
Implement dithering (#694) Dithering lowers digital-to-analog conversion ("requantization") error, linearizing output, lowering distortion and replacing it with a constant, fixed noise level, which is more pleasant to the ear than the distortion. Guidance: - On S24, S24_3 and S24, the default is to use triangular dithering. Depending on personal preference you may use Gaussian dithering instead; it's not as good objectively, but it may be preferred subjectively if you are looking for a more "analog" sound akin to tape hiss. - Advanced users who know that they have a DAC without noise shaping have a third option: high-passed dithering, which is like triangular dithering except that it moves dithering noise up in frequency where it is less audible. Note: 99% of DACs are of delta-sigma design with noise shaping, so unless you have a multibit / R2R DAC, or otherwise know what you are doing, this is not for you. - Don't dither or shape noise on S32 or F32. On F32 it's not supported anyway (there are no integer conversions and so no rounding errors) and on S32 the noise level is so far down that it is simply inaudible even after volume normalisation and control. New command line option: --dither DITHER Specify the dither algorithm to use - [none, gpdf, tpdf, tpdf_hp]. Defaults to 'tpdf' for formats S16 S24, S24_3 and 'none' for other formats. Notes: This PR also features some opportunistic improvements. Worthy of mention are: - matching reference Vorbis sample conversion techniques for lower noise - a cleanup of the convert API
2021-05-26 19:19:17 +00:00
rand_distr = "0.4"
[features]
alsa-backend = ["alsa"]
portaudio-backend = ["portaudio-rs"]
pulseaudio-backend = ["libpulse-binding", "libpulse-simple-binding"]
jackaudio-backend = ["jack"]
rodio-backend = ["rodio", "cpal"]
rodiojack-backend = ["rodio", "cpal/jack"]
2018-12-28 02:46:27 +00:00
sdl-backend = ["sdl2"]
gstreamer-backend = ["gstreamer", "gstreamer-app", "gstreamer-audio", "glib"]
2022-01-25 19:46:10 +00:00
passthrough-decoder = ["ogg"]