wip: playing symphonia-loaded samples

This commit is contained in:
🪞👃🪞 2024-07-23 18:28:20 +03:00
parent b29d3ecda2
commit bdd3e31403
5 changed files with 36 additions and 26 deletions

View file

@ -295,7 +295,7 @@ impl Sample {
_ => panic!("unexpected in sample {name}"),
});
let (end, data) = read_sample_data(&format!("{dir}/{file}"))?;
Ok((midi, Self::new(&name, start, end, data)))
Ok((midi, Arc::new(RwLock::new(Self::new(&name, start, end, data)))))
}
}