diff --git a/tracker/agb-tracker/src/mixer.rs b/tracker/agb-tracker/src/mixer.rs index 9054d002..110627e9 100644 --- a/tracker/agb-tracker/src/mixer.rs +++ b/tracker/agb-tracker/src/mixer.rs @@ -1,9 +1,12 @@ #![allow(missing_docs)] use agb_fixnum::Num; +use alloc::borrow::Cow; pub trait SoundChannel { - fn new(data: &alloc::borrow::Cow<'static, [u8]>) -> Self; + // I need a reference to a cow here to support the static data correctly + #[allow(clippy::ptr_arg)] + fn new(data: &Cow<'static, [u8]>) -> Self; fn stop(&mut self); fn pause(&mut self) -> &mut Self;