mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 21:26:43 +01:00
17 lines
374 B
Rust
17 lines
374 B
Rust
use crate::*;
|
|
|
|
render!(Mixer |self, buf, area| {
|
|
let mut x = 0;
|
|
for channel in self.tracks.iter() {
|
|
x = x + channel.render(buf, Rect {
|
|
x: area.x + x,
|
|
y: area.y,
|
|
width: area.width,
|
|
height: area.height
|
|
})?.width;
|
|
if x >= area.width {
|
|
break
|
|
}
|
|
}
|
|
Ok(area)
|
|
});
|