mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
38 lines
1.2 KiB
Rust
38 lines
1.2 KiB
Rust
use crate::*;
|
|
|
|
impl Content for Mixer<Tui> {
|
|
type Engine = Tui;
|
|
fn content (&self) -> impl Widget<Engine = Tui> {
|
|
Stack::right(|add| {
|
|
for channel in self.tracks.iter() {
|
|
add(channel)?;
|
|
}
|
|
Ok(())
|
|
})
|
|
}
|
|
}
|
|
|
|
impl Content for Track<Tui> {
|
|
type Engine = Tui;
|
|
fn content (&self) -> impl Widget<Engine = Tui> {
|
|
TrackView {
|
|
chain: Some(&self),
|
|
direction: tek_core::Direction::Right,
|
|
focused: true,
|
|
entered: true,
|
|
//pub channels: u8,
|
|
//pub input_ports: Vec<Port<AudioIn>>,
|
|
//pub pre_gain_meter: f64,
|
|
//pub gain: f64,
|
|
//pub insert_ports: Vec<Port<AudioOut>>,
|
|
//pub return_ports: Vec<Port<AudioIn>>,
|
|
//pub post_gain_meter: f64,
|
|
//pub post_insert_meter: f64,
|
|
//pub level: f64,
|
|
//pub pan: f64,
|
|
//pub output_ports: Vec<Port<AudioOut>>,
|
|
//pub post_fader_meter: f64,
|
|
//pub route: String,
|
|
}
|
|
}
|
|
}
|