/// Sets a function to be called by Csound for performing real-time audio recording.
/// With this callback the user can fill a buffer with samples from a custom
/// audio module, and pass it into csound.
Sets a function to be called by Csound for performing real-time audio recording.
With this callback the user can fill a buffer with samples from a custom
audio module, and pass it into csound.
Sets a function to be called by Csound for performing real - time audio recording . With this callback the user can fill a buffer with samples from a custom audio module and pass it into csound .
pub fn rt_audio_rec_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&mut [f64]) -> usize + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_rt_rec_cb(self.engine.csound, f);
        }
    }
pub fn rt_audio_rec_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & mut [ f64 ] ) -> usize + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_rt_rec_cb ( self . engine . csound , f ) ; } }
Sets a function to be called by Csound for performing real-time audio recording.
Sets a function to be called by Csound for performing real - time audio recording .
&self
f
F