open ports; start work on sampler

This commit is contained in:
🪞👃🪞 2024-05-24 19:41:07 +03:00
parent 11a9f3ba50
commit f9218e887a
5 changed files with 501 additions and 96 deletions

34
src/prelude.rs Normal file
View file

@ -0,0 +1,34 @@
pub use std::error::Error;
pub use std::io::{stdout, Stdout, Write};
pub use std::thread::spawn;
pub use std::time::Duration;
pub use std::sync::{
Arc,
atomic::{AtomicBool, Ordering},
mpsc::{channel, Sender, Receiver}
};
pub use crossterm::{
QueueableCommand,
cursor,
terminal,
style::*,
};
pub use jack::{
AsyncClient,
AudioIn,
AudioOut,
Client,
ClientOptions,
ClientStatus,
ClosureProcessHandler,
Control,
Frames,
NotificationHandler,
Port,
PortId,
ProcessScope,
};
pub type Jack<N> = AsyncClient<
N,
ClosureProcessHandler<Box<dyn FnMut(&Client, &ProcessScope)-> Control + Send>>
>;