2018-02-09 01:05:50 +00:00
|
|
|
[package]
|
|
|
|
name = "librespot-playback"
|
2022-05-21 20:31:15 +00:00
|
|
|
version = "0.4.0"
|
2018-02-09 01:05:50 +00:00
|
|
|
authors = ["Sasha Hilton <sashahilton00@gmail.com>"]
|
2020-11-26 19:31:51 +00:00
|
|
|
description = "The audio playback logic for librespot"
|
|
|
|
license = "MIT"
|
2020-11-26 19:30:37 +00:00
|
|
|
repository = "https://github.com/librespot-org/librespot"
|
2020-01-17 18:09:10 +00:00
|
|
|
edition = "2018"
|
2018-02-09 01:05:50 +00:00
|
|
|
|
|
|
|
[dependencies.librespot-audio]
|
|
|
|
path = "../audio"
|
2022-05-21 20:31:15 +00:00
|
|
|
version = "0.4.0"
|
2018-02-09 01:05:50 +00:00
|
|
|
[dependencies.librespot-core]
|
|
|
|
path = "../core"
|
2022-05-21 20:31:15 +00:00
|
|
|
version = "0.4.0"
|
2018-02-09 01:05:50 +00:00
|
|
|
[dependencies.librespot-metadata]
|
|
|
|
path = "../metadata"
|
2022-05-21 20:31:15 +00:00
|
|
|
version = "0.4.0"
|
2018-02-09 01:05:50 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2021-02-21 18:38:49 +00:00
|
|
|
futures-executor = "0.3"
|
2021-02-22 08:58:08 +00:00
|
|
|
futures-util = { version = "0.3", default_features = false, features = ["alloc"] }
|
2019-07-08 08:08:32 +00:00
|
|
|
log = "0.4"
|
2022-05-21 18:55:55 +00:00
|
|
|
parking_lot = { version = "0.11", features = ["deadlock_detection"] }
|
2021-01-21 21:22:32 +00:00
|
|
|
byteorder = "1.4"
|
2020-11-27 03:24:41 +00:00
|
|
|
shell-words = "1.0.0"
|
2022-05-21 18:55:55 +00:00
|
|
|
tokio = { version = "1", features = ["sync", "parking_lot"] }
|
2021-05-26 19:43:20 +00:00
|
|
|
zerocopy = { version = "0.3" }
|
2021-09-20 17:29:12 +00:00
|
|
|
thiserror = { version = "1" }
|
2018-02-09 01:05:50 +00:00
|
|
|
|
2021-05-26 19:43:20 +00:00
|
|
|
# Backends
|
2021-03-19 21:28:55 +00:00
|
|
|
alsa = { version = "0.5", optional = true }
|
2020-04-07 03:29:29 +00:00
|
|
|
portaudio-rs = { version = "0.3", optional = true }
|
2021-03-27 20:13:14 +00:00
|
|
|
libpulse-binding = { version = "2", optional = true, default-features = false }
|
|
|
|
libpulse-simple-binding = { version = "2", optional = true, default-features = false }
|
2021-05-09 21:03:25 +00:00
|
|
|
jack = { version = "0.7", optional = true }
|
2021-04-09 18:01:21 +00:00
|
|
|
sdl2 = { version = "0.34.3", optional = true }
|
2022-05-21 18:55:55 +00:00
|
|
|
gstreamer = { version = "0.17", optional = true }
|
|
|
|
gstreamer-app = { version = "0.17", optional = true }
|
|
|
|
gstreamer-audio = { version = "0.17", optional = true }
|
2020-11-27 04:02:48 +00:00
|
|
|
glib = { version = "0.10", optional = true }
|
2018-02-09 01:05:50 +00:00
|
|
|
|
2021-02-12 17:25:13 +00:00
|
|
|
# Rodio dependencies
|
2021-05-25 20:35:35 +00:00
|
|
|
rodio = { version = "0.14", optional = true, default-features = false }
|
2022-05-21 19:51:37 +00:00
|
|
|
cpal = { version = "<0.13.5", optional = true }
|
2021-02-12 17:25:13 +00:00
|
|
|
|
2021-05-26 19:43:20 +00:00
|
|
|
# Decoder
|
|
|
|
lewton = "0.10"
|
2021-04-13 08:29:34 +00:00
|
|
|
ogg = "0.8"
|
|
|
|
|
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
|
2021-10-21 17:31:58 +00:00
|
|
|
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"
|
|
|
|
|
2018-02-09 01:05:50 +00:00
|
|
|
[features]
|
2021-09-20 17:29:12 +00:00
|
|
|
alsa-backend = ["alsa"]
|
2018-02-09 01:05:50 +00:00
|
|
|
portaudio-backend = ["portaudio-rs"]
|
2021-09-20 17:29:12 +00:00
|
|
|
pulseaudio-backend = ["libpulse-binding", "libpulse-simple-binding"]
|
2018-02-09 01:05:50 +00:00
|
|
|
jackaudio-backend = ["jack"]
|
2021-09-20 17:29:12 +00:00
|
|
|
rodio-backend = ["rodio", "cpal"]
|
|
|
|
rodiojack-backend = ["rodio", "cpal/jack"]
|
2018-12-28 02:46:27 +00:00
|
|
|
sdl-backend = ["sdl2"]
|
2022-05-21 18:55:55 +00:00
|
|
|
gstreamer-backend = ["gstreamer", "gstreamer-app", "gstreamer-audio", "glib"]
|