/// Sets a function to be called by Csound for opening real-time MIDI input.
/// This callback is used to inform to the user about the current MIDI input device.
/// # Arguments
/// * `user_func` A function/closure which will receive a reference
///  to a str with the device name.
Sets a function to be called by Csound for opening real-time MIDI input.
This callback is used to inform to the user about the current MIDI input device.
Sets a function to be called by Csound for opening real - time MIDI input . This callback is used to inform to the user about the current MIDI input device .
pub fn midi_in_open_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&str) + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_midi_in_open_cb(self.engine.csound, f);
        }
    }
pub fn midi_in_open_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & str ) + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_midi_in_open_cb ( self . engine . csound , f ) ; } }
Sets a function to be called by Csound for opening real-time MIDI input.
Sets a function to be called by Csound for opening real - time MIDI input .
&self
f
F