From f4ac45e5b6f341236e880e35332f4f1881600a90 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Mon, 16 Jan 2023 14:08:54 +0100 Subject: [PATCH] Change interface SoundHandler type --- src/context_interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {