/// Sets a function to be called by Csound for reading from real time MIDI input.
/// A reference to a buffer with audio samples is passed
/// to the user function in the callback.  The callback have to return the number of elements written to the buffer.
Sets a function to be called by Csound for reading from real time MIDI input.
A reference to a buffer with audio samples is passed
to the user function in the callback.  The callback have to return the number of elements written to the buffer.
Sets a function to be called by Csound for reading from real time MIDI input . A reference to a buffer with audio samples is passed to the user function in the callback . The callback have to return the number of elements written to the buffer .
pub fn midi_read_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&mut [u8]) -> usize + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_midi_read_cb(self.engine.csound, f);
        }
    }
pub fn midi_read_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & mut [ u8 ] ) -> usize + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_midi_read_cb ( self . engine . csound , f ) ; } }
Sets a function to be called by Csound for reading from real time MIDI input.
Sets a function to be called by Csound for reading from real time MIDI input .
&self
f
F