Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove with-vorbis and with-tremor features #750

Merged
merged 3 commits into from
May 26, 2021
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed
- [connect] Removed no-op mixer started/stopped logic (breaking)
- [playback] Removed `with-vorbis` and `with-tremor` features
- [playback] `alsamixer`: removed `--mixer-linear-volume` option; use `--volume-ctrl linear` instead

### Fixed
Expand Down
69 changes: 0 additions & 69 deletions Cargo.lock

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

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ rodiojack-backend = ["librespot-playback/rodiojack-backend"]
sdl-backend = ["librespot-playback/sdl-backend"]
gstreamer-backend = ["librespot-playback/gstreamer-backend"]

with-tremor = ["librespot-playback/with-tremor"]
with-vorbis = ["librespot-playback/with-vorbis"]

with-dns-sd = ["librespot-discovery/with-dns-sd"]

default = ["rodio-backend"]
Expand Down
15 changes: 5 additions & 10 deletions playback/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ path = "../metadata"
version = "0.2.0"

[dependencies]
cfg-if = "1.0"
futures-executor = "0.3"
futures-util = { version = "0.3", default_features = false, features = ["alloc"] }
log = "0.4"
byteorder = "1.4"
shell-words = "1.0.0"
tokio = { version = "1", features = ["sync"] }
zerocopy = { version = "0.3" }
zerocopy = { version = "0.3" }

# Backends
alsa = { version = "0.5", optional = true }
portaudio-rs = { version = "0.3", optional = true }
libpulse-binding = { version = "2", optional = true, default-features = false }
Expand All @@ -42,11 +42,9 @@ rodio = { version = "0.14", optional = true, default-features = false
cpal = { version = "0.13", optional = true }
thiserror = { version = "1", optional = true }

# Decoders
lewton = "0.10" # Currently not optional because of limitations of cargo features
librespot-tremor = { version = "0.2", optional = true }
# Decoder
lewton = "0.10"
ogg = "0.8"
vorbis = { version ="0.0", optional = true }

# Dithering
rand = "0.8"
Expand All @@ -60,7 +58,4 @@ jackaudio-backend = ["jack"]
rodio-backend = ["rodio", "cpal", "thiserror"]
rodiojack-backend = ["rodio", "cpal/jack", "thiserror"]
sdl-backend = ["sdl2"]
gstreamer-backend = ["gstreamer", "gstreamer-app", "glib"]

with-tremor = ["librespot-tremor"]
with-vorbis = ["vorbis"]
gstreamer-backend = ["gstreamer", "gstreamer-app", "glib"]
13 changes: 2 additions & 11 deletions playback/src/decoder/mod.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
use std::fmt;

use cfg_if::cfg_if;

cfg_if! {
if #[cfg(any(feature = "with-tremor", feature = "with-vorbis"))] {
mod libvorbis_decoder;
pub use libvorbis_decoder::{VorbisDecoder, VorbisError};
} else {
mod lewton_decoder;
pub use lewton_decoder::{VorbisDecoder, VorbisError};
}
}
mod lewton_decoder;
pub use lewton_decoder::{VorbisDecoder, VorbisError};

mod passthrough_decoder;
pub use passthrough_decoder::{PassthroughDecoder, PassthroughError};
Expand Down