fluidlite 0.2.1

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

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());
        }
    }
}