1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

Update softmixer.rs to use AtomicU64 from atomic_shim, so that librespot works with MIPS and MIPSEL (#1461)

* Update softmixer.rs

Use AtomicU64 from atomic_shim, so that librespot works with MIPS and MIPSEL

* Update Cargo.toml with atomic-shim dependency

Added atomic-shim dependency

* Update Cargo.lock with atomic-shim package

Added atomic-shim package
This commit is contained in:
humaita-github 2025-01-31 23:29:55 +01:00 committed by GitHub
parent c1ae8608aa
commit 471735aa5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

10
Cargo.lock generated
View file

@ -169,6 +169,15 @@ dependencies = [
"syn 2.0.96",
]
[[package]]
name = "atomic-shim"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67cd4b51d303cf3501c301e8125df442128d3c6d7c69f71b27833d253de47e77"
dependencies = [
"crossbeam-utils",
]
[[package]]
name = "atomic-waker"
version = "1.1.2"
@ -2133,6 +2142,7 @@ name = "librespot-playback"
version = "0.6.0-dev"
dependencies = [
"alsa",
"atomic-shim",
"cpal",
"futures-util",
"glib",

View file

@ -21,6 +21,7 @@ path = "../metadata"
version = "0.6.0-dev"
[dependencies]
atomic-shim = "0.2.0"
futures-util = "0.3"
log = "0.4"
parking_lot = { version = "0.12", features = ["deadlock_detection"] }

View file

@ -1,4 +1,5 @@
use std::sync::atomic::{AtomicU64, Ordering};
use atomic_shim::AtomicU64;
use std::sync::atomic::Ordering;
use std::sync::Arc;
use super::VolumeGetter;