/// Sets a function to be called by Csound for Writing to real time MIDI input.
/// A reference to the device buffer is passed
/// to the user function in the callback. The passed buffer have the max length that
/// the user is able to use, and the callback have to return the number of element written into the buffer.
Sets a function to be called by Csound for Writing to real time MIDI input.
A reference to the device buffer is passed
to the user function in the callback. The passed buffer have the max length that
the user is able to use, and the callback have to return the number of element written into the buffer.
Sets a function to be called by Csound for Writing to real time MIDI input . A reference to the device buffer is passed to the user function in the callback . The passed buffer have the max length that the user is able to use and the callback have to return the number of element written into the buffer .
pub fn midi_write_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&[u8]) -> usize + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_midi_write_cb(self.engine.csound, f);
        }
    }
pub fn midi_write_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & [ u8 ] ) -> usize + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_midi_write_cb ( self . engine . csound , f ) ; } }
Sets a function to be called by Csound for Writing to real time MIDI input.
Sets a function to be called by Csound for Writing to real time MIDI input .
&self
f
F