i dont know why that worked

This commit is contained in:
🪞👃🪞 2024-06-16 13:58:46 +03:00
parent 4ae62c5bc2
commit b73aa8a0dc
17 changed files with 552 additions and 481 deletions

View file

@ -1,20 +1,42 @@
pub type Usually<T> = Result<T, Box<dyn Error>>;
pub use crate::draw::*;
pub use crate::device::{
Device,
DynamicDevice,
AppEvent,
};
pub use crate::time::*;
pub use crate::layout::{
Rows,
Columns
};
pub use std::error::Error;
pub use std::io::{
stdout,
Stdout,
Write
};
pub use std::thread::{
spawn,
JoinHandle
};
pub use std::time::Duration;
pub use std::sync::{
Arc,
Mutex,
atomic::{AtomicBool, Ordering},
mpsc::{self, channel, Sender, Receiver}
};
pub use crossterm::{
ExecutableCommand, QueueableCommand,
event::{Event, KeyEvent, KeyCode, KeyModifiers},
@ -25,11 +47,16 @@ pub use crossterm::{
enable_raw_mode, disable_raw_mode
},
};
pub use ratatui::{
prelude::*,
widgets::WidgetRef,
prelude::{
Buffer, Rect, Style, Color, CrosstermBackend, Layout, Stylize, Direction,
Line, Constraint
},
widgets::{Widget, WidgetRef},
//style::Stylize,
};
pub use jack::{
AsyncClient,
AudioIn,
@ -51,12 +78,7 @@ pub use jack::{
TransportState,
TransportStatePosition
};
pub type BoxedProcessHandler = Box<dyn FnMut(&Client, &ProcessScope)-> Control + Send>;
pub type Jack<N> = AsyncClient<N, ClosureProcessHandler<BoxedProcessHandler>>;
pub use crate::render::*;
pub use crate::device::{
Device,
DynamicDevice,
EngineEvent,
};
pub type Usually<T> = Result<T, Box<dyn Error>>;