Improve context interfdace

This commit is contained in:
hodasemi 2025-02-27 13:52:14 +01:00
parent f160914fce
commit 79879d1ae7
2 changed files with 1 additions and 2 deletions

View file

@ -18,4 +18,3 @@ anyhow = { version = "1.0.86", features = ["backtrace"] }
audio = { git = "https://gavania.de/hodasemi/audio.git", optional = true } audio = { git = "https://gavania.de/hodasemi/audio.git", optional = true }
[features] [features]
default = ["audio"]

View file

@ -18,7 +18,7 @@ pub trait ContextInterface: Send + Sync {
fn height(&self) -> u32; fn height(&self) -> u32;
#[cfg(feature = "audio")] #[cfg(feature = "audio")]
fn sound_handler(&self) -> std::sync::MutexGuard<'_, SoundHandler>; fn sound_handler(&mut self) -> &mut SoundHandler;
} }
pub enum TargetMode<T> { pub enum TargetMode<T> {