Improve context interfdace
This commit is contained in:
parent
f160914fce
commit
79879d1ae7
2 changed files with 1 additions and 2 deletions
|
@ -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"]
|
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue