pub struct Engine<const N: usize> {
pub context: AudioContext<N>,
pub index_info: HashMap<String, Vec<NodeIndex>>,
pub index_info_backup: HashMap<String, Vec<NodeIndex>>,
pub refpairlist: Vec<(Vec<String>, String, usize)>,
pub samples_dict: HashMap<String, (&'static [f32], usize, usize)>,
pub livecoding: bool,
/* private fields */
}
Fields§
§context: AudioContext<N>
§index_info: HashMap<String, Vec<NodeIndex>>
§index_info_backup: HashMap<String, Vec<NodeIndex>>
§refpairlist: Vec<(Vec<String>, String, usize)>
§samples_dict: HashMap<String, (&'static [f32], usize, usize)>
§livecoding: bool
Implementations§
source§impl<const N: usize> Engine<N>
impl<const N: usize> Engine<N>
pub fn new() -> Self
pub fn send_msg(&mut self, msg: &str)
pub fn update_with_code(&mut self, code: &str)
pub fn update(&mut self) -> Result<(), EngineError>
pub fn reset(&mut self)
pub fn parse(&mut self) -> Result<(), EngineError>
pub fn make_graph(&mut self) -> Result<(), EngineError>
pub fn clean_up(&mut self, e: EngineError) -> Result<(), EngineError>
pub fn handle_ref_check(&self) -> Result<(), EngineError>
pub fn handle_remove_chain(&mut self)
pub fn handle_node_add(&mut self)
pub fn handle_node_update(&mut self) -> Result<(), EngineError>
pub fn handle_node_remove(&mut self)
pub fn handle_connection(&mut self)
pub fn next_block(&mut self, buf: Vec<&[f32]>) -> (&[Buffer<N>], [u8; 256])
pub fn set_bpm(&mut self, bpm: f32)
pub fn set_sr(&mut self, sr: usize)
pub fn set_seed(&mut self, seed: usize)
pub fn set_track_amp(&mut self, amp: f32)
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for Engine<N>
impl<const N: usize> !RefUnwindSafe for Engine<N>
impl<const N: usize> Send for Engine<N>
impl<const N: usize> !Sync for Engine<N>
impl<const N: usize> Unpin for Engine<N>
impl<const N: usize> !UnwindSafe for Engine<N>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more