mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: <200 errors yay
This commit is contained in:
parent
14d619a10a
commit
694970bf0d
20 changed files with 384 additions and 305 deletions
|
|
@ -1,12 +1,12 @@
|
|||
use crate::*;
|
||||
|
||||
pub struct Mixer<E> {
|
||||
pub struct Mixer<E: Engine> {
|
||||
pub name: String,
|
||||
pub tracks: Vec<Track<E>>,
|
||||
pub selected_track: usize,
|
||||
pub selected_column: usize,
|
||||
}
|
||||
impl<E> Mixer<E> {
|
||||
impl<E: Engine> Mixer<E> {
|
||||
pub fn new (name: &str) -> Usually<Self> {
|
||||
let (client, _status) = Client::new(name, ClientOptions::NO_START_SERVER)?;
|
||||
Ok(Self {
|
||||
|
|
@ -25,7 +25,7 @@ impl<E> Mixer<E> {
|
|||
self.tracks.get(self.selected_track)
|
||||
}
|
||||
}
|
||||
impl<E> Process for Mixer<E> {
|
||||
impl<E: Engine> Process for Mixer<E> {
|
||||
fn process (&mut self, _: &Client, _: &ProcessScope) -> Control {
|
||||
Control::Continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue