fluidlite 0.1.2

Safe bindings to fluidlite library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Synth, Loader, ffi};

impl Synth {
    /**
    Add a SoundFont loader to the synthesizer. Note that SoundFont
    loader don't necessarily load SoundFonts. They can load any type
    of wavetable data but export a SoundFont interface.
     */
    pub fn add_sfloader(&self, loader: Loader) {
        unsafe { ffi::fluid_synth_add_sfloader(self.handle, loader.into_ptr()); }
    }
}