diff --git a/src/context_interface.rs b/src/context_interface.rs index 0c5fd70..3ac43d3 100644 --- a/src/context_interface.rs +++ b/src/context_interface.rs @@ -18,7 +18,7 @@ pub trait ContextInterface: Send + Sync { fn height(&self) -> u32; #[cfg(feature = "audio")] - fn sound_handler(&self) -> &mut SoundHandler; + fn sound_handler(&self) -> std::sync::MutexGuard<'_, SoundHandler>; } pub enum TargetMode {