/// Sets a function to be called by Csound for opening real-time audio playback.
/// This callback is used to inform the user about the current audio device Which
/// Csound will use to play the audio samples.
/// # Arguments
/// * `user_func` A function/closure which will receive a reference
///  to a RtAudioParams struct.
Sets a function to be called by Csound for opening real-time audio playback.
This callback is used to inform the user about the current audio device Which
Csound will use to play the audio samples.
Sets a function to be called by Csound for opening real - time audio playback . This callback is used to inform the user about the current audio device Which Csound will use to play the audio samples .
pub fn play_open_audio_callback<'c, F>(&self, f: F)
    where
        F: FnMut(&RtAudioParams) -> Status + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_play_open_cb(self.engine.csound, f);
        }
    }
pub fn play_open_audio_callback < ' c , F > ( & self , f : F ) where F : FnMut ( & RtAudioParams ) -> Status + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_play_open_cb ( self . engine . csound , f ) ; } }
Sets a function to be called by Csound for opening real-time audio playback.
Sets a function to be called by Csound for opening real - time audio playback .
&self
f
F