diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68ecb03..c4cff61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ permissions: env: RSLXST_RSRETICULUM_VERSION: 1.3.0 - RSLXST_RSRETICULUM_COMMIT: cac8151fd8207ada9775310fe2b3c9c7340a7ecd + RSLXST_RSRETICULUM_COMMIT: 6bbac52ea0b09f743a5e934f7b0eec2617e083df RSLXST_PYTHON_LXST_COMMIT: 1194c9011fe6402edc7aebe7ffe9650ea3b1afee RSLXST_PYTHON_RNS_COMMIT: b48b96e61676504e0a4e527b33b9a0b4495c6872 diff --git a/crates/lxst-core/src/raw.rs b/crates/lxst-core/src/raw.rs index cf60635..3427a7e 100644 --- a/crates/lxst-core/src/raw.rs +++ b/crates/lxst-core/src/raw.rs @@ -74,24 +74,24 @@ fn decode_samples(bytes: &[u8], bit_depth: RawBitDepth) -> Result, Erro let mut samples = Vec::with_capacity(bytes.len() / bytes_per_sample); match bit_depth { RawBitDepth::Float16 => { - for chunk in bytes.chunks_exact(2) { + for chunk in bytes.as_chunks::<2>().0 { samples.push(f16::from_le_bytes([chunk[0], chunk[1]]).to_f32()); } } RawBitDepth::Float32 => { - for chunk in bytes.chunks_exact(4) { + for chunk in bytes.as_chunks::<4>().0 { samples.push(f32::from_le_bytes([chunk[0], chunk[1], chunk[2], chunk[3]])); } } RawBitDepth::Float64 => { - for chunk in bytes.chunks_exact(8) { + for chunk in bytes.as_chunks::<8>().0 { samples.push(f64::from_le_bytes([ chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6], chunk[7], ]) as f32); } } RawBitDepth::Float128 => { - for chunk in bytes.chunks_exact(16) { + for chunk in bytes.as_chunks::<16>().0 { samples.push(decode_float128_lossy(chunk)); } } diff --git a/tools/check-source-release.py b/tools/check-source-release.py index abce3c0..5961c8f 100644 --- a/tools/check-source-release.py +++ b/tools/check-source-release.py @@ -15,7 +15,7 @@ EXPECTED_PACKAGES = {"lxst-core", "lxst-codec2", "lxst-embedded", "lxst-rns", "l EXPECTED_MSRV = "1.89" EMBEDDED_MSRV = {"lxst-codec2": "1.87", "lxst-embedded": "1.87"} EXPECTED_RETICULUM_VERSION = "1.3.0" -EXPECTED_RETICULUM_COMMIT = "cac8151fd8207ada9775310fe2b3c9c7340a7ecd" +EXPECTED_RETICULUM_COMMIT = "6bbac52ea0b09f743a5e934f7b0eec2617e083df" EXPECTED_OPUS_DEPENDENCY = ( 'opus-rs = { version = "=0.1.29", default-features = false, ' 'features = ["heap"] }'