Struct screech::core::DynamicTracker [−][src]
pub struct DynamicTracker { /* fields omitted */ }
Expand description
Basic dynamically sized tracker for the creation of unique ids and to keep track of signals belonging to a certain id
use screech::traits::Source;
use screech::core::DynamicTracker;
use screech::basic::{Track, Oscillator};
let mut tracker = DynamicTracker::new();
let osc = Oscillator::new(&mut tracker);
let track = Track::new(&mut tracker);
// the resulting id is irrelevant as long as it is unique
assert_eq!(osc.get_source_id() != track.get_source_id(), true);
Implementations
Trait Implementations
Return a unique ID
clear source id for reuse
get signal for id
set signal for id