mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor: separate Render from Handle
This commit is contained in:
parent
d9b3bd150e
commit
72ead536be
12 changed files with 255 additions and 212 deletions
|
|
@ -15,15 +15,9 @@ impl Transport {
|
|||
DynamicDevice::new(render, handle, process, Self {
|
||||
name: name.into(),
|
||||
timebase: Arc::new(Timebase {
|
||||
rate: AtomicUsize::new(
|
||||
transport.query()?.pos.frame_rate().map(|x|x as usize).unwrap_or(0)
|
||||
),
|
||||
tempo: AtomicUsize::new(
|
||||
113000
|
||||
),
|
||||
ppq: AtomicUsize::new(
|
||||
96
|
||||
),
|
||||
rate: AtomicUsize::new(client.sample_rate()),
|
||||
tempo: AtomicUsize::new(113000),
|
||||
ppq: AtomicUsize::new(96),
|
||||
}),
|
||||
transport
|
||||
}).activate(client)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue