add symphony and dasp for sample preview

This commit is contained in:
🪞👃🪞 2024-07-23 00:45:00 +03:00
parent ced391d104
commit d61f2e3c20
5 changed files with 517 additions and 24 deletions

View file

@ -108,7 +108,9 @@ impl App {
.collect();
Ok(self)
}
pub fn activate (mut self, init: Option<impl FnOnce(&Arc<RwLock<Self>>)->Usually<()>>) -> Usually<Arc<RwLock<Self>>> {
pub fn activate (
mut self, init: Option<impl FnOnce(&Arc<RwLock<Self>>)->Usually<()>>
) -> Usually<Arc<RwLock<Self>>> {
let jack = self.jack.take().expect("no jack client");
let app = Arc::new(RwLock::new(self));
app.write().unwrap().jack = Some(jack.activate(&app.clone(), |state, client, scope|{