Skip to content

Commit 3eeef71

Browse files
committed
Move to capturing audio with the new CPAL PipeWire backend when available, as Snap over Ubuntu 26.04 seems to have issues with ALSA
1 parent eef1b63 commit 3eeef71

File tree

11 files changed

+317
-20
lines changed

11 files changed

+317
-20
lines changed

Cargo.lock

Lines changed: 244 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ crc32fast = "1.2.0" # Used for the CRC-32 checksum in the binary signature
2424
base64 = "0.12.3"
2525
rodio = { version = "0.22.2", features = ["symphonia-all"] } # For reading WAV/MP3/FLAG/OGG files, resampling and playing audio.
2626
clap = { version = "4.5.56", features = ["cargo"] } # For argument parsing
27-
cpal = "0.17.3" # For recording audio
2827
serde_json = "1.0.57" # For decoding and encoding JSON
2928
uuid = { version = "0.8.1", features = ["v4"] }
3029
glib = { version = "0.21", features = ["log", "v2_66"] }
@@ -67,7 +66,11 @@ pulse = [ "pulsectl-rs", "libpulse-binding" ]
6766
mpris = [ "mpris-player" ]
6867
ffmpeg = []
6968

69+
[target.'cfg(not(target_os = "linux"))'.dependencies]
70+
cpal = { git = "https://github.com/RustAudio/cpal.git", rev = "2da4ee1" }
71+
7072
[target.'cfg(target_os = "linux")'.dependencies]
73+
cpal = { git = "https://github.com/RustAudio/cpal.git", rev = "2da4ee1", features = ["pipewire"] }
7174
pulsectl-rs = { version = "0.3.2", optional = true }
7275
ksni = { version = "0.3", default-features = false, features = ["async-io"], optional = true }
7376
libpulse-binding = { version = "2.24.0", optional = true }

0 commit comments

Comments
 (0)