mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-11 14:16:42 +01:00
wip: refactor pt.36 (10e) fewer structs, more field duplication
This commit is contained in:
parent
7af5bbd02b
commit
92bcd19925
11 changed files with 136 additions and 65 deletions
|
|
@ -34,11 +34,9 @@ impl<T: PlayheadApi> Command<T> for PlayheadCommand {
|
|||
}
|
||||
|
||||
pub trait PlayheadApi: ClockApi {
|
||||
|
||||
fn transport (&self) -> &jack::Transport;
|
||||
|
||||
/// Playback state
|
||||
fn playing (&self) -> &RwLock<Option<TransportState>>;
|
||||
|
||||
/// Global sample and usec at which playback started
|
||||
fn started (&self) -> &RwLock<Option<(usize, usize)>>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue