/// Sets a function that is called to obtain a list of audio devices.
/// This should be set by rtaudio modules and should not be set by hosts.
Sets a function that is called to obtain a list of audio devices.
This should be set by rtaudio modules and should not be set by hosts.
Sets a function that is called to obtain a list of audio devices . This should be set by rtaudio modules and should not be set by hosts .
pub fn audio_device_list_callback<'c, F>(&self, f: F)
    where
        F: FnMut(CsAudioDevice) + 'c,
    {
        unsafe {
            (*(csound_sys::csoundGetHostData(self.engine.csound) as *mut CallbackHandler))
                .callbacks
                .set_devlist_cb(self.engine.csound, f);
        }
    }
pub fn audio_device_list_callback < ' c , F > ( & self , f : F ) where F : FnMut ( CsAudioDevice ) + ' c , { unsafe { ( * ( csound_sys :: csoundGetHostData ( self . engine . csound ) as * mut CallbackHandler ) ) . callbacks . set_devlist_cb ( self . engine . csound , f ) ; } }
Sets a function that is called to obtain a list of audio devices.
Sets a function that is called to obtain a list of audio devices .
&self
f
F