1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
extern crate libc; use std::ffi::{CString}; mod ffi; pub mod modulator; pub mod settings; pub mod synth; pub mod audio; pub mod midi; pub mod event; pub mod seq; pub mod voice; pub mod ramsfont; pub mod gen; pub mod log; pub mod sfont; pub fn is_soundfont(filename: &str) -> bool { let name = CString::new(filename).unwrap(); unsafe { ffi::fluid_is_soundfont(name.as_ptr()) != 0 } } pub fn is_midifile(filename: &str) -> bool { let name = CString::new(filename).unwrap(); unsafe { ffi::fluid_is_midifile(name.as_ptr()) != 0 } }