audio-clock
Propagate a musical clock from a real-time audio thread to other threads:
let tempo = 132.2;
let sample_rate = 44100;
let = audio_clock;
// ... somehow send updater to the real-time audio thread.
// From an audio callback, increment the clock,
// from the real-time audio thread
updater.increment;
// Somewhere else, use the clock:
println!;
println!;
println!;
let other_consumer = consumer.clone;
// Send other_consumer to some other thread.
Licence
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)