mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-02-21 16:29:04 +01:00
This commit is contained in:
parent
a4ae1d9b02
commit
4569e6d3f8
5 changed files with 14 additions and 7 deletions
|
|
@ -184,8 +184,11 @@ pub trait HasClips {
|
|||
}
|
||||
has_clips!(|self: Pool|self.clips);
|
||||
has_clip!(|self: Pool|self.clips().get(self.clip_index()).map(|c|c.clone()));
|
||||
from!(|clip:&Arc<RwLock<MidiClip>>|Pool = {
|
||||
let model = Self::default(); model.clips.write().unwrap().push(clip.clone()); model.clip.store(1, Relaxed); model
|
||||
from!(Pool: |clip:&Arc<RwLock<MidiClip>>|{
|
||||
let model = Self::default();
|
||||
model.clips.write().unwrap().push(clip.clone());
|
||||
model.clip.store(1, Relaxed);
|
||||
model
|
||||
});
|
||||
impl Pool {
|
||||
fn _todo_usize_ (&self) -> usize { todo!() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue