Skip to main content

midi_open_input

Function midi_open_input 

Source
pub fn midi_open_input(index: u32) -> u32
Expand description

Open a MIDI input port by index and start receiving messages.

Returns a handle (> 0) on success, or 0 if the port could not be opened. Incoming messages are queued internally; drain them with midi_recv.