Skip to content

Commit

Permalink
Merge pull request #371 from boozook/fix-sound-sample-data
Browse files Browse the repository at this point in the history
Prevent DCE for stored sound sample data
  • Loading branch information
boozook authored May 30, 2024
2 parents 834bf3c + 09b88be commit 08b7591
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion api/sound/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion api/sound/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl<Api: api::Api> Sample<Api> {

/// Sample over borrowed audio data.
#[cfg_attr(feature = "bindings-derive-debug", derive(Debug))]
pub struct SampleWithData<'t, Api: api::Api>(Sample<Api>, &'t mut [u8]);
pub struct SampleWithData<'t, Api: api::Api>(Sample<Api>, #[allow(dead_code)] &'t mut [u8]);

impl<Api: api::Api> Deref for SampleWithData<'_, Api> {
type Target = Sample<Api>;
Expand Down

0 comments on commit 08b7591

Please sign in to comment.