mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: refactor pt.21: api traits
This commit is contained in:
parent
b8708d6b2d
commit
029614631e
10 changed files with 626 additions and 490 deletions
|
|
@ -38,3 +38,15 @@ submod! {
|
|||
transport
|
||||
transport_cmd
|
||||
}
|
||||
|
||||
pub trait JackModelApi {
|
||||
fn jack (&self) -> &Arc<RwLock<JackClient>>;
|
||||
}
|
||||
|
||||
pub trait ClockModelApi {
|
||||
fn clock (&self) -> &Arc<Clock>;
|
||||
fn is_stopped (&self) -> bool {
|
||||
*self.clock().playing.read().unwrap() == Some(TransportState::Stopped)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue