Function lsynth::c_compatible::ls_set_custom_waveform
source · [−]#[no_mangle]
pub unsafe extern "C" fn ls_set_custom_waveform(
chip_state: *mut ChipState,
channel: usize,
waveform_ptr: *mut f32,
waveform_len: usize
)
Expand description
Sends a SetCustomWaveform command to the given channel.
Safety
chip_state must be a valid ChipState generated from the ls_init function. waveform_ptr must point to the first f32 in an array, and waveform_len must be the length of that array.