wip: providing content chunks with ednprovider

This commit is contained in:
🪞👃🪞 2025-01-12 16:12:26 +01:00
parent 1ff35baea9
commit 8c54f8e426
8 changed files with 157 additions and 41 deletions

View file

@ -0,0 +1,18 @@
use tek::*;
struct ExampleClips(Vec<Arc<RwLock<Clip>>>);
impl HasClips for ExampleClips {
fn phrases (&self) -> &Vec<Arc<RwLock<Clip>>> {
&self.0
}
fn phrases_mut (&mut self) -> &mut Vec<Arc<RwLock<Clip>>> {
&mut self.0
}
}
fn main () -> Usually<()> {
let mut phrases = ExampleClips(vec![]);
PoolClipCommand::Import(0, String::from("./example.mid")).execute(&mut phrases)?;
Ok(())
}