From 86d578c587be1874ff7923c4c1056cadd3a46130 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 19 Sep 2024 16:05:28 -0400 Subject: Added basic note-sequence source support and removed multithreading dependency --- src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a15f3b8..0a9123e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,7 +13,7 @@ mod assets; pub use assets::*; #[cfg(feature = "hl4mgm")] -pub (crate) static HL4MGM: &[u8] = include_bytes!("./embedded_assets/hl4mgm.sf2"); +pub(crate) static HL4MGM: &[u8] = include_bytes!("./embedded_assets/hl4mgm.sf2"); pub(crate) static SOUNDFONT: OnceLock> = OnceLock::new(); @@ -27,7 +27,9 @@ pub struct RustySynthPlugin { #[cfg(feature = "hl4mgm")] impl Default for RustySynthPlugin> { fn default() -> Self { - Self { soundfont: Cursor::new(HL4MGM) } + Self { + soundfont: Cursor::new(HL4MGM), + } } } @@ -36,6 +38,8 @@ impl Plugin for RustySynthPlugin { let _ = SOUNDFONT.set(Arc::new( SoundFont::new(&mut self.soundfont.clone()).unwrap(), )); - app.add_audio_source::().init_asset::().init_asset_loader::(); + app.add_audio_source::() + .init_asset::() + .init_asset_loader::(); } } -- cgit v1.2.3