catalina-engine 0.1.0

Audio and synth DSP framework for creating audio processing and music platforms on embedded platforms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod oscillator;

// Re-export `dasp` so the version used by the engine
// can be transparently imported by other crates.
pub use dasp::{
    Frame, Sample,
    frame::{self, Mono, Stereo},
    sample::FromSample,
    slice, *,
};

pub trait AudioSource {
    type Frame: Frame;

    /// Render a buffered block of audio from the audio source.
    fn render(&mut self, buffer: &'_ mut [Self::Frame]);
}