blob: fe88d8994f9179c8418b5797dfdb77e5324af936 (
plain)
1
2
3
4
5
6
7
8
9
10
|
extern crate coremidi_sys as cm;
fn main()
{
let src: u64 = unsafe { cm::MIDIGetNumberOfSources() };
let dest: u64 = unsafe { cm::MIDIGetNumberOfDestinations() };
println!("Number of MIDI sources: {}", src);
println!("Number of MIDI destinations: {}", dest);
}
|