From 09b88be0fa5d765bf53035fabf5d4091b764b896 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Thu, 30 May 2024 13:47:55 +0400 Subject: [PATCH] Prevent DCT for stored sound sample data --- Cargo.lock | 2 +- api/sound/Cargo.toml | 2 +- api/sound/src/sample.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 26bb0a26..bf42ecf5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4249,7 +4249,7 @@ dependencies = [ [[package]] name = "playdate-sound" -version = "0.4.0" +version = "0.4.1" dependencies = [ "playdate-fs", "playdate-graphics", diff --git a/api/sound/Cargo.toml b/api/sound/Cargo.toml index 3a09539d..ff7f8439 100644 --- a/api/sound/Cargo.toml +++ b/api/sound/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "playdate-sound" -version = "0.4.0" +version = "0.4.1" readme = "README.md" description = "High-level sound API built on-top of Playdate API" keywords = ["playdate", "sdk", "api", "gamedev"] diff --git a/api/sound/src/sample.rs b/api/sound/src/sample.rs index 0bbe2a91..6b2f15f7 100644 --- a/api/sound/src/sample.rs +++ b/api/sound/src/sample.rs @@ -188,7 +188,7 @@ impl Sample { /// Sample over borrowed audio data. #[cfg_attr(feature = "bindings-derive-debug", derive(Debug))] -pub struct SampleWithData<'t, Api: api::Api>(Sample, &'t mut [u8]); +pub struct SampleWithData<'t, Api: api::Api>(Sample, #[allow(dead_code)] &'t mut [u8]); impl Deref for SampleWithData<'_, Api> { type Target = Sample;